Skip to content

Error in SignalPreKeyBundle initWithRegistrationId method #13

Description

@kasas

Good evening,

we are trying to use Signal with OMEMO in an XMPP app, however we are stuck in this method:

SignalPreKeyBundle* preKey = [[SignalPreKeyBundle alloc] initWithRegistrationId:0 deviceId:deviceId preKeyId:key.preKeyId preKeyPublic:key.publicKey signedPreKeyId:bundle.signedPreKey.preKeyId signedPreKeyPublic:bundle.signedPreKey.publicKey signature:bundle.signedPreKey.signature identityKey:bundle.identityKey error:&error];

As the init method is not able to use prekey publickey generated by the SignalHelper of the same framework. Could you please help us?

As you can see

captura de pantalla 2019-01-08 a las 18 04 53

ec_public_key *pre_key_public = [SignalKeyPair publicKeyFromData:preKeyPublic error:error];
if (!pre_key_public) {
return nil;
}

is returning nil.. the error is domain: "org.whispersystems.SignalProtocol" - code: 4

Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions