Documentation ¶
Index ¶
- Variables
- type AddAssociation
- func (*AddAssociation) Descriptor() ([]byte, []int)deprecated
- func (x *AddAssociation) GetExistingMemberSignature() *Signature
- func (x *AddAssociation) GetNewMemberIdentifier() *MemberIdentifier
- func (x *AddAssociation) GetNewMemberSignature() *Signature
- func (*AddAssociation) ProtoMessage()
- func (x *AddAssociation) ProtoReflect() protoreflect.Message
- func (x *AddAssociation) Reset()
- func (x *AddAssociation) String() string
- type AssociationState
- func (*AssociationState) Descriptor() ([]byte, []int)deprecated
- func (x *AssociationState) GetInboxId() string
- func (x *AssociationState) GetMembers() []*MemberMap
- func (x *AssociationState) GetRecoveryAddress() string
- func (x *AssociationState) GetSeenSignatures() [][]byte
- func (*AssociationState) ProtoMessage()
- func (x *AssociationState) ProtoReflect() protoreflect.Message
- func (x *AssociationState) Reset()
- func (x *AssociationState) String() string
- type AssociationStateDiff
- func (*AssociationStateDiff) Descriptor() ([]byte, []int)deprecated
- func (x *AssociationStateDiff) GetNewMembers() []*MemberIdentifier
- func (x *AssociationStateDiff) GetRemovedMembers() []*MemberIdentifier
- func (*AssociationStateDiff) ProtoMessage()
- func (x *AssociationStateDiff) ProtoReflect() protoreflect.Message
- func (x *AssociationStateDiff) Reset()
- func (x *AssociationStateDiff) String() string
- type ChangeRecoveryAddress
- func (*ChangeRecoveryAddress) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeRecoveryAddress) GetExistingRecoveryAddressSignature() *Signature
- func (x *ChangeRecoveryAddress) GetNewRecoveryAddress() string
- func (*ChangeRecoveryAddress) ProtoMessage()
- func (x *ChangeRecoveryAddress) ProtoReflect() protoreflect.Message
- func (x *ChangeRecoveryAddress) Reset()
- func (x *ChangeRecoveryAddress) String() string
- type CreateInbox
- func (*CreateInbox) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInbox) GetInitialAddress() string
- func (x *CreateInbox) GetInitialAddressSignature() *Signature
- func (x *CreateInbox) GetNonce() uint64
- func (*CreateInbox) ProtoMessage()
- func (x *CreateInbox) ProtoReflect() protoreflect.Message
- func (x *CreateInbox) Reset()
- func (x *CreateInbox) String() string
- type IdentityAction
- func (*IdentityAction) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityAction) GetAdd() *AddAssociation
- func (x *IdentityAction) GetChangeRecoveryAddress() *ChangeRecoveryAddress
- func (x *IdentityAction) GetCreateInbox() *CreateInbox
- func (m *IdentityAction) GetKind() isIdentityAction_Kind
- func (x *IdentityAction) GetRevoke() *RevokeAssociation
- func (*IdentityAction) ProtoMessage()
- func (x *IdentityAction) ProtoReflect() protoreflect.Message
- func (x *IdentityAction) Reset()
- func (x *IdentityAction) String() string
- type IdentityAction_Add
- type IdentityAction_ChangeRecoveryAddress
- type IdentityAction_CreateInbox
- type IdentityAction_Revoke
- type IdentityUpdate
- func (*IdentityUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityUpdate) GetActions() []*IdentityAction
- func (x *IdentityUpdate) GetClientTimestampNs() uint64
- func (x *IdentityUpdate) GetInboxId() string
- func (*IdentityUpdate) ProtoMessage()
- func (x *IdentityUpdate) ProtoReflect() protoreflect.Message
- func (x *IdentityUpdate) Reset()
- func (x *IdentityUpdate) String() string
- type LegacyDelegatedSignature
- func (*LegacyDelegatedSignature) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyDelegatedSignature) GetDelegatedKey() *message_contents.SignedPublicKey
- func (x *LegacyDelegatedSignature) GetSignature() *RecoverableEcdsaSignature
- func (*LegacyDelegatedSignature) ProtoMessage()
- func (x *LegacyDelegatedSignature) ProtoReflect() protoreflect.Message
- func (x *LegacyDelegatedSignature) Reset()
- func (x *LegacyDelegatedSignature) String() string
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetAddedByEntity() *MemberIdentifier
- func (x *Member) GetClientTimestampNs() uint64
- func (x *Member) GetIdentifier() *MemberIdentifier
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- type MemberIdentifier
- func (*MemberIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *MemberIdentifier) GetAddress() string
- func (x *MemberIdentifier) GetInstallationPublicKey() []byte
- func (m *MemberIdentifier) GetKind() isMemberIdentifier_Kind
- func (*MemberIdentifier) ProtoMessage()
- func (x *MemberIdentifier) ProtoReflect() protoreflect.Message
- func (x *MemberIdentifier) Reset()
- func (x *MemberIdentifier) String() string
- type MemberIdentifier_Address
- type MemberIdentifier_InstallationPublicKey
- type MemberMap
- type RecoverableEcdsaSignature
- func (*RecoverableEcdsaSignature) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverableEcdsaSignature) GetBytes() []byte
- func (*RecoverableEcdsaSignature) ProtoMessage()
- func (x *RecoverableEcdsaSignature) ProtoReflect() protoreflect.Message
- func (x *RecoverableEcdsaSignature) Reset()
- func (x *RecoverableEcdsaSignature) String() string
- type RecoverableEd25519Signature
- func (*RecoverableEd25519Signature) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverableEd25519Signature) GetBytes() []byte
- func (x *RecoverableEd25519Signature) GetPublicKey() []byte
- func (*RecoverableEd25519Signature) ProtoMessage()
- func (x *RecoverableEd25519Signature) ProtoReflect() protoreflect.Message
- func (x *RecoverableEd25519Signature) Reset()
- func (x *RecoverableEd25519Signature) String() string
- type RevokeAssociation
- func (*RevokeAssociation) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeAssociation) GetMemberToRevoke() *MemberIdentifier
- func (x *RevokeAssociation) GetRecoveryAddressSignature() *Signature
- func (*RevokeAssociation) ProtoMessage()
- func (x *RevokeAssociation) ProtoReflect() protoreflect.Message
- func (x *RevokeAssociation) Reset()
- func (x *RevokeAssociation) String() string
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetDelegatedErc_191() *LegacyDelegatedSignature
- func (x *Signature) GetErc_191() *RecoverableEcdsaSignature
- func (x *Signature) GetErc_6492() *SmartContractWalletSignature
- func (x *Signature) GetInstallationKey() *RecoverableEd25519Signature
- func (m *Signature) GetSignature() isSignature_Signature
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) String() string
- type Signature_DelegatedErc_191
- type Signature_Erc_191
- type Signature_Erc_6492
- type Signature_InstallationKey
- type SmartContractWalletSignature
- func (*SmartContractWalletSignature) Descriptor() ([]byte, []int)deprecated
- func (x *SmartContractWalletSignature) GetAccountId() string
- func (x *SmartContractWalletSignature) GetBlockNumber() uint64
- func (x *SmartContractWalletSignature) GetSignature() []byte
- func (*SmartContractWalletSignature) ProtoMessage()
- func (x *SmartContractWalletSignature) ProtoReflect() protoreflect.Message
- func (x *SmartContractWalletSignature) Reset()
- func (x *SmartContractWalletSignature) String() string
Constants ¶
This section is empty.
Variables ¶
var File_identity_associations_association_proto protoreflect.FileDescriptor
var File_identity_associations_signature_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddAssociation ¶
type AddAssociation struct { NewMemberIdentifier *MemberIdentifier `protobuf:"bytes,1,opt,name=new_member_identifier,json=newMemberIdentifier,proto3" json:"new_member_identifier,omitempty"` ExistingMemberSignature *Signature `` /* 132-byte string literal not displayed */ NewMemberSignature *Signature `protobuf:"bytes,3,opt,name=new_member_signature,json=newMemberSignature,proto3" json:"new_member_signature,omitempty"` // contains filtered or unexported fields }
Adds a new member for an XID - either an addressable member such as a wallet, or an installation acting on behalf of an address. A key-pair that has been associated with one role MUST not be permitted to be associated with a different role.
func (*AddAssociation) Descriptor
deprecated
func (*AddAssociation) Descriptor() ([]byte, []int)
Deprecated: Use AddAssociation.ProtoReflect.Descriptor instead.
func (*AddAssociation) GetExistingMemberSignature ¶
func (x *AddAssociation) GetExistingMemberSignature() *Signature
func (*AddAssociation) GetNewMemberIdentifier ¶
func (x *AddAssociation) GetNewMemberIdentifier() *MemberIdentifier
func (*AddAssociation) GetNewMemberSignature ¶
func (x *AddAssociation) GetNewMemberSignature() *Signature
func (*AddAssociation) ProtoMessage ¶
func (*AddAssociation) ProtoMessage()
func (*AddAssociation) ProtoReflect ¶
func (x *AddAssociation) ProtoReflect() protoreflect.Message
func (*AddAssociation) Reset ¶
func (x *AddAssociation) Reset()
func (*AddAssociation) String ¶
func (x *AddAssociation) String() string
type AssociationState ¶
type AssociationState struct { InboxId string `protobuf:"bytes,1,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"` Members []*MemberMap `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` RecoveryAddress string `protobuf:"bytes,3,opt,name=recovery_address,json=recoveryAddress,proto3" json:"recovery_address,omitempty"` SeenSignatures [][]byte `protobuf:"bytes,4,rep,name=seen_signatures,json=seenSignatures,proto3" json:"seen_signatures,omitempty"` // contains filtered or unexported fields }
A final association state resulting from multiple `IdentityUpdates`
func (*AssociationState) Descriptor
deprecated
func (*AssociationState) Descriptor() ([]byte, []int)
Deprecated: Use AssociationState.ProtoReflect.Descriptor instead.
func (*AssociationState) GetInboxId ¶
func (x *AssociationState) GetInboxId() string
func (*AssociationState) GetMembers ¶
func (x *AssociationState) GetMembers() []*MemberMap
func (*AssociationState) GetRecoveryAddress ¶
func (x *AssociationState) GetRecoveryAddress() string
func (*AssociationState) GetSeenSignatures ¶
func (x *AssociationState) GetSeenSignatures() [][]byte
func (*AssociationState) ProtoMessage ¶
func (*AssociationState) ProtoMessage()
func (*AssociationState) ProtoReflect ¶
func (x *AssociationState) ProtoReflect() protoreflect.Message
func (*AssociationState) Reset ¶
func (x *AssociationState) Reset()
func (*AssociationState) String ¶
func (x *AssociationState) String() string
type AssociationStateDiff ¶
type AssociationStateDiff struct { NewMembers []*MemberIdentifier `protobuf:"bytes,1,rep,name=new_members,json=newMembers,proto3" json:"new_members,omitempty"` RemovedMembers []*MemberIdentifier `protobuf:"bytes,2,rep,name=removed_members,json=removedMembers,proto3" json:"removed_members,omitempty"` // contains filtered or unexported fields }
/ state diff between two final AssociationStates
func (*AssociationStateDiff) Descriptor
deprecated
func (*AssociationStateDiff) Descriptor() ([]byte, []int)
Deprecated: Use AssociationStateDiff.ProtoReflect.Descriptor instead.
func (*AssociationStateDiff) GetNewMembers ¶
func (x *AssociationStateDiff) GetNewMembers() []*MemberIdentifier
func (*AssociationStateDiff) GetRemovedMembers ¶
func (x *AssociationStateDiff) GetRemovedMembers() []*MemberIdentifier
func (*AssociationStateDiff) ProtoMessage ¶
func (*AssociationStateDiff) ProtoMessage()
func (*AssociationStateDiff) ProtoReflect ¶
func (x *AssociationStateDiff) ProtoReflect() protoreflect.Message
func (*AssociationStateDiff) Reset ¶
func (x *AssociationStateDiff) Reset()
func (*AssociationStateDiff) String ¶
func (x *AssociationStateDiff) String() string
type ChangeRecoveryAddress ¶
type ChangeRecoveryAddress struct { NewRecoveryAddress string `protobuf:"bytes,1,opt,name=new_recovery_address,json=newRecoveryAddress,proto3" json:"new_recovery_address,omitempty"` ExistingRecoveryAddressSignature *Signature `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
Changes the recovery address for an XID. The recovery address is not required to be a member of the XID. In addition to being able to add members, the recovery address can also revoke members.
func (*ChangeRecoveryAddress) Descriptor
deprecated
func (*ChangeRecoveryAddress) Descriptor() ([]byte, []int)
Deprecated: Use ChangeRecoveryAddress.ProtoReflect.Descriptor instead.
func (*ChangeRecoveryAddress) GetExistingRecoveryAddressSignature ¶
func (x *ChangeRecoveryAddress) GetExistingRecoveryAddressSignature() *Signature
func (*ChangeRecoveryAddress) GetNewRecoveryAddress ¶
func (x *ChangeRecoveryAddress) GetNewRecoveryAddress() string
func (*ChangeRecoveryAddress) ProtoMessage ¶
func (*ChangeRecoveryAddress) ProtoMessage()
func (*ChangeRecoveryAddress) ProtoReflect ¶
func (x *ChangeRecoveryAddress) ProtoReflect() protoreflect.Message
func (*ChangeRecoveryAddress) Reset ¶
func (x *ChangeRecoveryAddress) Reset()
func (*ChangeRecoveryAddress) String ¶
func (x *ChangeRecoveryAddress) String() string
type CreateInbox ¶
type CreateInbox struct { InitialAddress string `protobuf:"bytes,1,opt,name=initial_address,json=initialAddress,proto3" json:"initial_address,omitempty"` Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` InitialAddressSignature *Signature `` // Must be an addressable member /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
The first entry of any XID log. The XID must be deterministically derivable from the address and nonce. The recovery address defaults to the initial associated_address unless there is a subsequent ChangeRecoveryAddress in the log.
func (*CreateInbox) Descriptor
deprecated
func (*CreateInbox) Descriptor() ([]byte, []int)
Deprecated: Use CreateInbox.ProtoReflect.Descriptor instead.
func (*CreateInbox) GetInitialAddress ¶
func (x *CreateInbox) GetInitialAddress() string
func (*CreateInbox) GetInitialAddressSignature ¶
func (x *CreateInbox) GetInitialAddressSignature() *Signature
func (*CreateInbox) GetNonce ¶
func (x *CreateInbox) GetNonce() uint64
func (*CreateInbox) ProtoMessage ¶
func (*CreateInbox) ProtoMessage()
func (*CreateInbox) ProtoReflect ¶
func (x *CreateInbox) ProtoReflect() protoreflect.Message
func (*CreateInbox) Reset ¶
func (x *CreateInbox) Reset()
func (*CreateInbox) String ¶
func (x *CreateInbox) String() string
type IdentityAction ¶
type IdentityAction struct { // Types that are assignable to Kind: // // *IdentityAction_CreateInbox // *IdentityAction_Add // *IdentityAction_Revoke // *IdentityAction_ChangeRecoveryAddress Kind isIdentityAction_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
A single identity operation
func (*IdentityAction) Descriptor
deprecated
func (*IdentityAction) Descriptor() ([]byte, []int)
Deprecated: Use IdentityAction.ProtoReflect.Descriptor instead.
func (*IdentityAction) GetAdd ¶
func (x *IdentityAction) GetAdd() *AddAssociation
func (*IdentityAction) GetChangeRecoveryAddress ¶
func (x *IdentityAction) GetChangeRecoveryAddress() *ChangeRecoveryAddress
func (*IdentityAction) GetCreateInbox ¶
func (x *IdentityAction) GetCreateInbox() *CreateInbox
func (*IdentityAction) GetKind ¶
func (m *IdentityAction) GetKind() isIdentityAction_Kind
func (*IdentityAction) GetRevoke ¶
func (x *IdentityAction) GetRevoke() *RevokeAssociation
func (*IdentityAction) ProtoMessage ¶
func (*IdentityAction) ProtoMessage()
func (*IdentityAction) ProtoReflect ¶
func (x *IdentityAction) ProtoReflect() protoreflect.Message
func (*IdentityAction) Reset ¶
func (x *IdentityAction) Reset()
func (*IdentityAction) String ¶
func (x *IdentityAction) String() string
type IdentityAction_Add ¶
type IdentityAction_Add struct {
Add *AddAssociation `protobuf:"bytes,2,opt,name=add,proto3,oneof"`
}
type IdentityAction_ChangeRecoveryAddress ¶
type IdentityAction_ChangeRecoveryAddress struct {
ChangeRecoveryAddress *ChangeRecoveryAddress `protobuf:"bytes,4,opt,name=change_recovery_address,json=changeRecoveryAddress,proto3,oneof"`
}
type IdentityAction_CreateInbox ¶
type IdentityAction_CreateInbox struct {
CreateInbox *CreateInbox `protobuf:"bytes,1,opt,name=create_inbox,json=createInbox,proto3,oneof"`
}
type IdentityAction_Revoke ¶
type IdentityAction_Revoke struct {
Revoke *RevokeAssociation `protobuf:"bytes,3,opt,name=revoke,proto3,oneof"`
}
type IdentityUpdate ¶
type IdentityUpdate struct { Actions []*IdentityAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` ClientTimestampNs uint64 `protobuf:"varint,2,opt,name=client_timestamp_ns,json=clientTimestampNs,proto3" json:"client_timestamp_ns,omitempty"` InboxId string `protobuf:"bytes,3,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"` // contains filtered or unexported fields }
One or more identity actions that were signed together. Example: [CreateXid, AddAssociation, ChangeRecoveryAddress]
- The batched signature text is created by concatenating the signature text of each association together with a separator, '\n\n\n'.
- The user signs this concatenated result.
- The resulting signature is added to each association proto where relevant. The same signature may be used for multiple associations in the array.
func (*IdentityUpdate) Descriptor
deprecated
func (*IdentityUpdate) Descriptor() ([]byte, []int)
Deprecated: Use IdentityUpdate.ProtoReflect.Descriptor instead.
func (*IdentityUpdate) GetActions ¶
func (x *IdentityUpdate) GetActions() []*IdentityAction
func (*IdentityUpdate) GetClientTimestampNs ¶
func (x *IdentityUpdate) GetClientTimestampNs() uint64
func (*IdentityUpdate) GetInboxId ¶
func (x *IdentityUpdate) GetInboxId() string
func (*IdentityUpdate) ProtoMessage ¶
func (*IdentityUpdate) ProtoMessage()
func (*IdentityUpdate) ProtoReflect ¶
func (x *IdentityUpdate) ProtoReflect() protoreflect.Message
func (*IdentityUpdate) Reset ¶
func (x *IdentityUpdate) Reset()
func (*IdentityUpdate) String ¶
func (x *IdentityUpdate) String() string
type LegacyDelegatedSignature ¶
type LegacyDelegatedSignature struct { DelegatedKey *message_contents.SignedPublicKey `protobuf:"bytes,1,opt,name=delegated_key,json=delegatedKey,proto3" json:"delegated_key,omitempty"` Signature *RecoverableEcdsaSignature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
An existing address on xmtpv2 may have already signed a legacy identity key of type SignedPublicKey via the 'Create Identity' signature. For migration to xmtpv3, the legacy key is permitted to sign on behalf of the address to create a matching xmtpv3 installation key. This signature type can ONLY be used for CreateXid and AddAssociation payloads, and can only be used once in xmtpv3.
func (*LegacyDelegatedSignature) Descriptor
deprecated
func (*LegacyDelegatedSignature) Descriptor() ([]byte, []int)
Deprecated: Use LegacyDelegatedSignature.ProtoReflect.Descriptor instead.
func (*LegacyDelegatedSignature) GetDelegatedKey ¶
func (x *LegacyDelegatedSignature) GetDelegatedKey() *message_contents.SignedPublicKey
func (*LegacyDelegatedSignature) GetSignature ¶
func (x *LegacyDelegatedSignature) GetSignature() *RecoverableEcdsaSignature
func (*LegacyDelegatedSignature) ProtoMessage ¶
func (*LegacyDelegatedSignature) ProtoMessage()
func (*LegacyDelegatedSignature) ProtoReflect ¶
func (x *LegacyDelegatedSignature) ProtoReflect() protoreflect.Message
func (*LegacyDelegatedSignature) Reset ¶
func (x *LegacyDelegatedSignature) Reset()
func (*LegacyDelegatedSignature) String ¶
func (x *LegacyDelegatedSignature) String() string
type Member ¶
type Member struct { Identifier *MemberIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` AddedByEntity *MemberIdentifier `protobuf:"bytes,2,opt,name=added_by_entity,json=addedByEntity,proto3,oneof" json:"added_by_entity,omitempty"` ClientTimestampNs *uint64 `protobuf:"varint,3,opt,name=client_timestamp_ns,json=clientTimestampNs,proto3,oneof" json:"client_timestamp_ns,omitempty"` // contains filtered or unexported fields }
single member that optionally indicates the member that added them
func (*Member) Descriptor
deprecated
func (*Member) GetAddedByEntity ¶
func (x *Member) GetAddedByEntity() *MemberIdentifier
func (*Member) GetClientTimestampNs ¶
func (*Member) GetIdentifier ¶
func (x *Member) GetIdentifier() *MemberIdentifier
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
type MemberIdentifier ¶
type MemberIdentifier struct { // Types that are assignable to Kind: // // *MemberIdentifier_Address // *MemberIdentifier_InstallationPublicKey Kind isMemberIdentifier_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
The identifier for a member of an XID
func (*MemberIdentifier) Descriptor
deprecated
func (*MemberIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use MemberIdentifier.ProtoReflect.Descriptor instead.
func (*MemberIdentifier) GetAddress ¶
func (x *MemberIdentifier) GetAddress() string
func (*MemberIdentifier) GetInstallationPublicKey ¶
func (x *MemberIdentifier) GetInstallationPublicKey() []byte
func (*MemberIdentifier) GetKind ¶
func (m *MemberIdentifier) GetKind() isMemberIdentifier_Kind
func (*MemberIdentifier) ProtoMessage ¶
func (*MemberIdentifier) ProtoMessage()
func (*MemberIdentifier) ProtoReflect ¶
func (x *MemberIdentifier) ProtoReflect() protoreflect.Message
func (*MemberIdentifier) Reset ¶
func (x *MemberIdentifier) Reset()
func (*MemberIdentifier) String ¶
func (x *MemberIdentifier) String() string
type MemberIdentifier_Address ¶
type MemberIdentifier_Address struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3,oneof"`
}
type MemberIdentifier_InstallationPublicKey ¶
type MemberIdentifier_InstallationPublicKey struct {
InstallationPublicKey []byte `protobuf:"bytes,2,opt,name=installation_public_key,json=installationPublicKey,proto3,oneof"`
}
type MemberMap ¶
type MemberMap struct { Key *MemberIdentifier `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *Member `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Map of members belonging to an inbox_id
func (*MemberMap) Descriptor
deprecated
func (*MemberMap) GetKey ¶
func (x *MemberMap) GetKey() *MemberIdentifier
func (*MemberMap) ProtoMessage ¶
func (*MemberMap) ProtoMessage()
func (*MemberMap) ProtoReflect ¶
func (x *MemberMap) ProtoReflect() protoreflect.Message
type RecoverableEcdsaSignature ¶
type RecoverableEcdsaSignature struct { // 65-bytes [ R || S || V ], with recovery id as the last byte Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
RecoverableEcdsaSignature for EIP-191 and V2 signatures
func (*RecoverableEcdsaSignature) Descriptor
deprecated
func (*RecoverableEcdsaSignature) Descriptor() ([]byte, []int)
Deprecated: Use RecoverableEcdsaSignature.ProtoReflect.Descriptor instead.
func (*RecoverableEcdsaSignature) GetBytes ¶
func (x *RecoverableEcdsaSignature) GetBytes() []byte
func (*RecoverableEcdsaSignature) ProtoMessage ¶
func (*RecoverableEcdsaSignature) ProtoMessage()
func (*RecoverableEcdsaSignature) ProtoReflect ¶
func (x *RecoverableEcdsaSignature) ProtoReflect() protoreflect.Message
func (*RecoverableEcdsaSignature) Reset ¶
func (x *RecoverableEcdsaSignature) Reset()
func (*RecoverableEcdsaSignature) String ¶
func (x *RecoverableEcdsaSignature) String() string
type RecoverableEd25519Signature ¶
type RecoverableEd25519Signature struct { // 64 bytes [R(32 bytes) || S(32 bytes)] Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` // 32 bytes PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
EdDSA signature for 25519
func (*RecoverableEd25519Signature) Descriptor
deprecated
func (*RecoverableEd25519Signature) Descriptor() ([]byte, []int)
Deprecated: Use RecoverableEd25519Signature.ProtoReflect.Descriptor instead.
func (*RecoverableEd25519Signature) GetBytes ¶
func (x *RecoverableEd25519Signature) GetBytes() []byte
func (*RecoverableEd25519Signature) GetPublicKey ¶
func (x *RecoverableEd25519Signature) GetPublicKey() []byte
func (*RecoverableEd25519Signature) ProtoMessage ¶
func (*RecoverableEd25519Signature) ProtoMessage()
func (*RecoverableEd25519Signature) ProtoReflect ¶
func (x *RecoverableEd25519Signature) ProtoReflect() protoreflect.Message
func (*RecoverableEd25519Signature) Reset ¶
func (x *RecoverableEd25519Signature) Reset()
func (*RecoverableEd25519Signature) String ¶
func (x *RecoverableEd25519Signature) String() string
type RevokeAssociation ¶
type RevokeAssociation struct { MemberToRevoke *MemberIdentifier `protobuf:"bytes,1,opt,name=member_to_revoke,json=memberToRevoke,proto3" json:"member_to_revoke,omitempty"` RecoveryAddressSignature *Signature `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
Revokes a member from an XID. The recovery address must sign the revocation.
func (*RevokeAssociation) Descriptor
deprecated
func (*RevokeAssociation) Descriptor() ([]byte, []int)
Deprecated: Use RevokeAssociation.ProtoReflect.Descriptor instead.
func (*RevokeAssociation) GetMemberToRevoke ¶
func (x *RevokeAssociation) GetMemberToRevoke() *MemberIdentifier
func (*RevokeAssociation) GetRecoveryAddressSignature ¶
func (x *RevokeAssociation) GetRecoveryAddressSignature() *Signature
func (*RevokeAssociation) ProtoMessage ¶
func (*RevokeAssociation) ProtoMessage()
func (*RevokeAssociation) ProtoReflect ¶
func (x *RevokeAssociation) ProtoReflect() protoreflect.Message
func (*RevokeAssociation) Reset ¶
func (x *RevokeAssociation) Reset()
func (*RevokeAssociation) String ¶
func (x *RevokeAssociation) String() string
type Signature ¶
type Signature struct { // Must have two properties: // 1. An identifier (address or public key) for the signer must either be // recoverable, or specified as a field. // 2. The signer certifies that the signing payload is correct. The payload // must be inferred from the context in which the signature is provided. // // Types that are assignable to Signature: // // *Signature_Erc_191 // *Signature_Erc_6492 // *Signature_InstallationKey // *Signature_DelegatedErc_191 Signature isSignature_Signature `protobuf_oneof:"signature"` // contains filtered or unexported fields }
A wrapper for all possible signature types
func (*Signature) Descriptor
deprecated
func (*Signature) GetDelegatedErc_191 ¶
func (x *Signature) GetDelegatedErc_191() *LegacyDelegatedSignature
func (*Signature) GetErc_191 ¶
func (x *Signature) GetErc_191() *RecoverableEcdsaSignature
func (*Signature) GetErc_6492 ¶
func (x *Signature) GetErc_6492() *SmartContractWalletSignature
func (*Signature) GetInstallationKey ¶
func (x *Signature) GetInstallationKey() *RecoverableEd25519Signature
func (*Signature) GetSignature ¶
func (m *Signature) GetSignature() isSignature_Signature
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
type Signature_DelegatedErc_191 ¶
type Signature_DelegatedErc_191 struct {
DelegatedErc_191 *LegacyDelegatedSignature `protobuf:"bytes,4,opt,name=delegated_erc_191,json=delegatedErc191,proto3,oneof"`
}
type Signature_Erc_191 ¶
type Signature_Erc_191 struct {
Erc_191 *RecoverableEcdsaSignature `protobuf:"bytes,1,opt,name=erc_191,json=erc191,proto3,oneof"`
}
type Signature_Erc_6492 ¶
type Signature_Erc_6492 struct {
Erc_6492 *SmartContractWalletSignature `protobuf:"bytes,2,opt,name=erc_6492,json=erc6492,proto3,oneof"`
}
type Signature_InstallationKey ¶
type Signature_InstallationKey struct {
InstallationKey *RecoverableEd25519Signature `protobuf:"bytes,3,opt,name=installation_key,json=installationKey,proto3,oneof"`
}
type SmartContractWalletSignature ¶
type SmartContractWalletSignature struct { // CAIP-10 string // https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Specify the block number to verify the signature against BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // The actual signature bytes Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
Smart Contract Wallet signature
func (*SmartContractWalletSignature) Descriptor
deprecated
func (*SmartContractWalletSignature) Descriptor() ([]byte, []int)
Deprecated: Use SmartContractWalletSignature.ProtoReflect.Descriptor instead.
func (*SmartContractWalletSignature) GetAccountId ¶
func (x *SmartContractWalletSignature) GetAccountId() string
func (*SmartContractWalletSignature) GetBlockNumber ¶
func (x *SmartContractWalletSignature) GetBlockNumber() uint64
func (*SmartContractWalletSignature) GetSignature ¶
func (x *SmartContractWalletSignature) GetSignature() []byte
func (*SmartContractWalletSignature) ProtoMessage ¶
func (*SmartContractWalletSignature) ProtoMessage()
func (*SmartContractWalletSignature) ProtoReflect ¶
func (x *SmartContractWalletSignature) ProtoReflect() protoreflect.Message
func (*SmartContractWalletSignature) Reset ¶
func (x *SmartContractWalletSignature) Reset()
func (*SmartContractWalletSignature) String ¶
func (x *SmartContractWalletSignature) String() string