From f15363a46789341902919082d6a0726cb33f473b Mon Sep 17 00:00:00 2001 From: Fuxing Loh Date: Sat, 17 Apr 2021 15:23:14 +0800 Subject: [PATCH] added bech32 to index for export --- packages/jellyfish-crypto/src/bech32.ts | 2 +- packages/jellyfish-crypto/src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jellyfish-crypto/src/bech32.ts b/packages/jellyfish-crypto/src/bech32.ts index b3fb20156f..eb4c20e98f 100644 --- a/packages/jellyfish-crypto/src/bech32.ts +++ b/packages/jellyfish-crypto/src/bech32.ts @@ -26,7 +26,7 @@ export function toBech32 (pubKey: Buffer, hrp: HRP, version: 0x00 = 0x00): strin * @param {string} address to decode from bech32 * @param {'df'|'tf'|'bcrt'} hrp is the human readable part * @param {number} version witness version, OP_0 - * @return {Buffer} pubkey + * @return {Buffer} hash160 of the pubkey * @see https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki */ export function fromBech32 (address: string, hrp?: HRP, version?: 0x00): Buffer { diff --git a/packages/jellyfish-crypto/src/index.ts b/packages/jellyfish-crypto/src/index.ts index 0870cf5028..d02d470a2b 100644 --- a/packages/jellyfish-crypto/src/index.ts +++ b/packages/jellyfish-crypto/src/index.ts @@ -1,3 +1,4 @@ +export * from './bech32' export * from './der' export * from './elliptic' export * from './hash'