SealedInvitation
Class: SealedInvitation
Wrapper class for SealedInvitationV1 and any future iterations of SealedInvitation
Implements
SealedInvitation
Constructors
constructor
new SealedInvitation(«destructured»
)
Parameters
Name | Type |
---|---|
«destructured» | SealedInvitation |
Defined in
Properties
v1
v1: undefined
| SealedInvitationV1
Implementation of
invitation.SealedInvitation.v1
Defined in
Methods
toBytes
toBytes(): Uint8Array
Returns
Uint8Array
Defined in
createV1
Static
createV1(«destructured»
): Promise
<SealedInvitation
>
Create a SealedInvitation with a SealedInvitationV1 payload Will encrypt all contents and validate inputs
Parameters
Name | Type |
---|---|
«destructured» | Object |
› created | Date |
› invitation | InvitationV1 |
› recipient | SignedPublicKeyBundle |
› sender | PrivateKeyBundleV2 |
Returns
Promise
<SealedInvitation
>
Defined in
fromBytes
Static
fromBytes(bytes
): SealedInvitation
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Defined in
fromEnvelope
Static
fromEnvelope(env
): Promise
<SealedInvitation
>
Parameters
Name | Type |
---|---|
env | Envelope |
Returns
Promise
<SealedInvitation
>