OmemoBundleElement_VAxolotl packOmemoBundle ( OmemoDevice userDevice ) throws CorruptedOmemoKeyException { int currentSignedPreKeyId = loadCurrentOmemoSignedPreKeyId ( userDevice ) ; T_SigPreKey currentSignedPreKey = loadOmemoSignedPreKeys ( userDevice ) . get ( currentSignedPreKeyId ) ; return new OmemoBundleElement_VAxolotl ( currentSignedPreKeyId , keyUtil ( ) . signedPreKeyPublicForBundle ( currentSignedPreKey ) , keyUtil ( ) . signedPreKeySignatureFromKey ( currentSignedPreKey ) , keyUtil ( ) . identityKeyForBundle ( keyUtil ( ) . identityKeyFromPair ( loadOmemoIdentityKeyPair ( userDevice ) ) ) , keyUtil ( ) . preKeyPublicKeysForBundle ( loadOmemoPreKeys ( userDevice ) ) ) ; }
Pack a OmemoBundleElement containing our key material .