WIF 比特币钱包导入格式编码/解码模块。 例 var wif = require ( 'wif' ) var privateKey = Buffer . from ( '0000000000000000000000000000000000000000000000000000000000000001' , 'hex' ) var key = wif . encode ( 128 , privateKey , true ) // for the testnet use: wif.encode(239, ... // => KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjg