UNPKG

@runonflux/aa-schnorr-multisig-sdk

Version:

Account Abstraction Schnorr Multi-Signatures SDK

40 lines (39 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchnorrSignature = exports.Challenge = exports.FinalPublicNonce = void 0; class FinalPublicNonce { constructor(buffer) { this.buffer = buffer; } toHex() { return this.buffer.toString("hex"); } static fromHex(hex) { return new FinalPublicNonce(Buffer.from(hex, "hex")); } } exports.FinalPublicNonce = FinalPublicNonce; class Challenge { constructor(buffer) { this.buffer = buffer; } toHex() { return this.buffer.toString("hex"); } static fromHex(hex) { return new FinalPublicNonce(Buffer.from(hex, "hex")); } } exports.Challenge = Challenge; class SchnorrSignature { constructor(buffer) { this.buffer = buffer; } toHex() { return this.buffer.toString("hex"); } static fromHex(hex) { return new FinalPublicNonce(Buffer.from(hex, "hex")); } } exports.SchnorrSignature = SchnorrSignature;