@hiero-ledger/sdk
Version:
3 lines (2 loc) • 757 B
JavaScript
import t from"./NodeAccountIdSignatureMap.js";import s from"../ObjectMap.js";import n from"../account/AccountId.js";import o from"./List.js";class e extends s{constructor(){super(t=>n.fromString(t))}static _fromTransaction(s){const n=new e,r=s._nodeAccountIds.length,i=s._signedTransactions.length/r;for(let e=0;e<r;e++){const a=new o;for(let t=0;t<i;t++)a.push(s._signedTransactions.get(t*r+e));n._set(s._nodeAccountIds.list[e],t._fromSignedTransactions(a))}return n}addSignature(s,n,o,e){let r=this.get(s);return r||(r=new t,this._set(s,r)),r.addSignature(n,o,e),this._set(s,r),this}getFlatSignatureList(){const t=[];for(const s of this.values())for(const n of s.values())t.push(n);return t}}export{e as default};
//# sourceMappingURL=SignatureMap.js.map