Skip to content

Commit

Permalink
added bech32 to index for export
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Apr 17, 2021
1 parent 98649d5 commit f15363a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jellyfish-crypto/src/bech32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions packages/jellyfish-crypto/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './bech32'
export * from './der'
export * from './elliptic'
export * from './hash'
Expand Down

0 comments on commit f15363a

Please sign in to comment.