(blockHeight: bigint, bchUsdPrice: bigint)
| 7 | |
| 8 | // Encode a blockHeight and bchUsdPrice into a byte sequence of 8 bytes (4 bytes per value) |
| 9 | createMessage(blockHeight: bigint, bchUsdPrice: bigint): Uint8Array { |
| 10 | const encodedBlockHeight = padMinimallyEncodedVmNumber(encodeInt(blockHeight), 4); |
| 11 | const encodedBchUsdPrice = padMinimallyEncodedVmNumber(encodeInt(bchUsdPrice), 4); |
| 12 | |
| 13 | return flattenBinArray([encodedBlockHeight, encodedBchUsdPrice]); |
| 14 | } |
| 15 | |
| 16 | signMessage(message: Uint8Array, signatureAlgorithm: SignatureAlgorithm = SignatureAlgorithm.SCHNORR): Uint8Array { |
| 17 | const signatureTemplate = new SignatureTemplate(this.privateKey, undefined, signatureAlgorithm); |
no test coverage detected