diff --git a/bindings/identity.go b/bindings/identity.go index bda224053da1dc8c557f48cfb6a577be9e00b8cd..4af1ee4275cf5db0e469c9ed87b07a2a6ea39277 100644 --- a/bindings/identity.go +++ b/bindings/identity.go @@ -89,6 +89,12 @@ func (c *Cmix) MakeLegacyReceptionIdentity() ([]byte, error) { return ident.Marshal() } +// GetReceptionRegistrationValidationSignature returns the signature provided by +// the xx network. +func (c *Cmix) GetReceptionRegistrationValidationSignature() []byte { + return c.api.GetStorage().GetReceptionRegistrationValidationSignature() +} + //////////////////////////////////////////////////////////////////////////////// // Contact Functions // //////////////////////////////////////////////////////////////////////////////// diff --git a/bindings/ud.go b/bindings/ud.go index 611d94f49c833f76a6f44f8a43f4f809610470ca..413aabf6d9e029c9472dbf5dd002f5d9b943b364 100644 --- a/bindings/ud.go +++ b/bindings/ud.go @@ -110,6 +110,10 @@ type UdNetworkStatus interface { // Parameters: // - e2eID - e2e object ID in the tracker // - follower - network follower func wrapped in UdNetworkStatus +// - username - the username the user wants to register with UD. +// If the user is already registered, this field may be blank +// - registrationValidationSignature - the signature provided by the xx network. +// This signature is optional for other consumers who deploy their own UD. func LoadOrNewUserDiscovery(e2eID int, follower UdNetworkStatus, username string, registrationValidationSignature []byte) ( *UserDiscovery, error) {