@hiero-ledger/sdk
Version:
3 lines (2 loc) • 512 B
JavaScript
import e from"../ObjectMap.js";import r from"../PublicKey.js";class t extends e{constructor(){super(e=>r.fromString(e))}static _fromTransactionSigMap(e){const s=new t,i=null!=e.sigPair?e.sigPair:[];for(const e of i)null!=e.pubKeyPrefix&&(null!=e.ed25519?s._set(r.fromBytesED25519(e.pubKeyPrefix),e.ed25519):null!=e.ECDSASecp256k1&&s._set(r.fromBytesECDSA(e.pubKeyPrefix),e.ECDSASecp256k1));return s}addSignature(e,r){return this._set(e,r),this}}export{t as default};
//# sourceMappingURL=SignaturePairMap.js.map