您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 300B

123456789101112
  1. 'use strict'
  2. var createHash = require('create-hash')
  3. var bs58checkBase = require('./base')
  4. // SHA256(SHA256(buffer))
  5. function sha256x2 (buffer) {
  6. var tmp = createHash('sha256').update(buffer).digest()
  7. return createHash('sha256').update(tmp).digest()
  8. }
  9. module.exports = bs58checkBase(sha256x2)