AccountKey
public struct AccountKey
The data structure of account key in flow account
-
The index of key
Declaration
Swift
public var id: Int
-
The public key for
Declaration
Swift
public let publicKey: PublicKey
-
The signature algorithm in
SignatureAlgorithm
typeDeclaration
Swift
public let signAlgo: SignatureAlgorithm
-
The hash algorithm in
HashAlgorithm
typeDeclaration
Swift
public let hashAlgo: HashAlgorithm
-
The weight for the account key
Declaration
Swift
public let weight: Int
-
The sequence number for the key, it must be equal or larger than zero
Declaration
Swift
public var sequenceNumber: Int
-
Indicate the key is revoked or not
Declaration
Swift
public var revoked: Bool
-
Undocumented
Declaration
Swift
public init(id: Int = -1, publicKey: Flow.PublicKey, signAlgo: SignatureAlgorithm, hashAlgo: HashAlgorithm, weight: Int, sequenceNumber: Int = -1, revoked: Bool = false)
-
Encode the account key with RLP encoding
Declaration
Swift
public var encoded: Data? { get }