Documentation ¶
Overview ¶
Package prekey provides prekey bundle structures for calculating a new Signal session with a user asyncronously.
Index ¶
- type Bundle
- func (b *Bundle) DeviceID() uint32
- func (b *Bundle) IdentityKey() *identity.Key
- func (b *Bundle) PreKey() ecc.ECPublicKeyable
- func (b *Bundle) PreKeyID() *optional.Uint32
- func (b *Bundle) RegistrationID() uint32
- func (b *Bundle) SignedPreKey() ecc.ECPublicKeyable
- func (b *Bundle) SignedPreKeyID() uint32
- func (b *Bundle) SignedPreKeySignature() [64]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle is a structure that contains a remote PreKey and collection of associated items.
func NewBundle ¶
func NewBundle(registrationID, deviceID uint32, preKeyID *optional.Uint32, signedPreKeyID uint32, preKeyPublic, signedPreKeyPublic ecc.ECPublicKeyable, signedPreKeySig [64]byte, identityKey *identity.Key) *Bundle
NewBundle returns a Bundle structure that contains a remote PreKey and collection of associated items.
func (*Bundle) IdentityKey ¶
IdentityKey returns the Identity Key of this PreKey's owner.
func (*Bundle) PreKey ¶
func (b *Bundle) PreKey() ecc.ECPublicKeyable
PreKey returns the public key for this PreKey.
func (*Bundle) RegistrationID ¶
RegistrationID returns the registration ID associated with this PreKey.
func (*Bundle) SignedPreKey ¶
func (b *Bundle) SignedPreKey() ecc.ECPublicKeyable
SignedPreKey returns the signed PreKey for this PreKeyBundle.
func (*Bundle) SignedPreKeyID ¶
SignedPreKeyID returns the unique key ID for this signed PreKey.
func (*Bundle) SignedPreKeySignature ¶
SignedPreKeySignature returns the signature over the signed PreKey.