"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Signature = void 0;
const layout_items_1 = require("./layout-items");
/** Signature represents the secp256k1 signature of a Guardian */
class Signature {
    r;
    s;
    v;
    constructor(r, s, v) {
        this.r = r;
        this.s = s;
        this.v = v;
    }
    encode() {
        return layout_items_1.signatureItem.custom.from(this);
    }
    static decode(data) {
        return layout_items_1.signatureItem.custom.to(data);
    }
}
exports.Signature = Signature;
//# sourceMappingURL=signature.js.map