MCPcopy Create free account
hub / github.com/bitpay/bitcore / shortID

Method shortID

packages/bitcore-cli/src/utils.ts:85–87  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

83 }
84
85 static shortID(id: string): string {
86 return id.substring(id.length - 4);
87 }
88
89 static confirmationId(copayer: { xPubKeySignature: string }): string {
90 return parseInt(copayer.xPubKeySignature.substring(-4), 16).toString().substring(-4);

Callers 1

utils.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected