Xmtp_MessageContents_EncryptedPrivateKeyBundleV1
public struct Xmtp_MessageContents_EncryptedPrivateKeyBundleV1
extension Xmtp_MessageContents_EncryptedPrivateKeyBundleV1: @unchecked Sendable
extension Xmtp_MessageContents_EncryptedPrivateKeyBundleV1: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding
PrivateKeyBundle encrypted with key material generated by signing a randomly generated “pre-key” with the user’s wallet, i.e. EIP-191 signature of a “storage signature” message with the pre-key embedded in it. (see xmtp-js::PrivateKeyBundle.toEncryptedBytes for details)
-
randomly generated pre-key
Declaration
Swift
public var walletPreKey: Data -
MUST contain encrypted PrivateKeyBundle
Declaration
Swift
public var ciphertext: Xmtp_MessageContents_Ciphertext { get set } -
Returns true if
ciphertexthas been explicitly set.Declaration
Swift
public var hasCiphertext: Bool { get } -
Clears the value of
ciphertext. Subsequent reads from it will return its default value.Declaration
Swift
public mutating func clearCiphertext() -
Declaration
Swift
public var unknownFields: UnknownStorage -
Declaration
Swift
public init()
-
Declaration
Swift
public static let protoMessageName: String -
Declaration
Swift
public static let _protobuf_nameMap: SwiftProtobuf._NameMap -
Declaration
Swift
public mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder -
Declaration
Swift
public func traverse<V>(visitor: inout V) throws where V : Visitor -
Declaration
Swift
public static func == (lhs: Xmtp_MessageContents_EncryptedPrivateKeyBundleV1, rhs: Xmtp_MessageContents_EncryptedPrivateKeyBundleV1) -> Bool
Xmtp_MessageContents_EncryptedPrivateKeyBundleV1 Structure Reference