UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

11 lines 511 B
import { Secp256k1PointDeriver } from '../keypair/Secp256k1PointDeriver.js'; class ContractAddressBase { deriver = new Secp256k1PointDeriver(); generateHybridKeyFromHash(input) { const p = this.deriver.findOrDeriveValidPoint(new Uint8Array(input), false); const y = this.deriver.getCanonicalY(p.y1, p.y2); return new Uint8Array(this.deriver.getHybridPublicKey(p.x, y)); } } export const ContractAddress = new ContractAddressBase(); //# sourceMappingURL=ContractAddress.js.map