MultisigAggregatedSignature
type MultisigAggregatedSignature
Aggregated signature from members of a multisig committee.
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
type MultisigAggregatedSignature struct {
// contains filtered or unexported fields
}
func LiftFromExternalMultisigAggregatedSignature
func LiftFromExternalMultisigAggregatedSignature(handle uint64) *MultisigAggregatedSignature
func MultisigAggregatedSignatureFromBcs
func MultisigAggregatedSignatureFromBcs(bcs []byte) (*MultisigAggregatedSignature, error)
Create this type from BCS encoded bytes.
func MultisigAggregatedSignatureFromJson
func MultisigAggregatedSignatureFromJson(json string) (*MultisigAggregatedSignature, error)
Create this type from a JSON encoded string.
func NewMultisigAggregatedSignature
func NewMultisigAggregatedSignature(signatures []*UserSignature, committee *MultisigCommittee) (*MultisigAggregatedSignature, error)
Construct a `MultisigAggregatedSignature` from a list of `UserSignature`s and a `MultisigCommittee`.
This: - validates `committee` via `MultisigCommittee::validate`, except that a committee mixing Ed25519 with other key schemes is accepted when every member provides a signature; - converts each `UserSignature` into a `MultisigMemberSignature`; - derives the `bitmap` by locating each signature's public key in the committee, rejecting duplicates and signatures from non-members; - rejects empty signature lists and lists longer than the committee.
The caller must provide `signatures` in the same order as their corresponding members in `committee`: for committee `[pk1, pk2, pk3, pk4, pk5]`, `[sig1, sig2, sig5]` is valid but `[sig2, sig1, sig5]` is not.
func (*MultisigAggregatedSignature) Bitmap
func (_self *MultisigAggregatedSignature) Bitmap() uint16
The bitmap that indicates which committee members provided their signature.
func (*MultisigAggregatedSignature) Committee
func (_self *MultisigAggregatedSignature) Committee() *MultisigCommittee
func (*MultisigAggregatedSignature) DebugString
func (_self *MultisigAggregatedSignature) DebugString() string
func (*MultisigAggregatedSignature) DeriveAddress
func (_self *MultisigAggregatedSignature) DeriveAddress() *Address
Derive the `Address` of the committee that produced this signature.
See `MultisigCommittee::derive_address`.
func (*MultisigAggregatedSignature) Destroy
func (object *MultisigAggregatedSignature) Destroy()
func (*MultisigAggregatedSignature) Eq
func (_self *MultisigAggregatedSignature) Eq(other *MultisigAggregatedSignature) bool
func (*MultisigAggregatedSignature) Ne
func (_self *MultisigAggregatedSignature) Ne(other *MultisigAggregatedSignature) bool
func (*MultisigAggregatedSignature) Signatures
func (_self *MultisigAggregatedSignature) Signatures() []*MultisigMemberSignature
The list of signatures from committee members
func (*MultisigAggregatedSignature) ToBcs
func (_self *MultisigAggregatedSignature) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*MultisigAggregatedSignature) ToDisplayString
func (_self *MultisigAggregatedSignature) ToDisplayString() string
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (*MultisigAggregatedSignature) ToJson
func (_self *MultisigAggregatedSignature) ToJson() (string, error)
Convert this type to a JSON encoded string.