AccountKey
struct AccountKey : Codable
The data structure of account key in flow account
-
The index of key
Declaration
Swift
public var index: Int -
The public key for
Declaration
Swift
public let publicKey: PublicKey -
The signature algorithm in
SignatureAlgorithmtypeDeclaration
Swift
public let signAlgo: SignatureAlgorithm -
The hash algorithm in
HashAlgorithmtypeDeclaration
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: Int64 -
Indicate the key is revoked or not
Declaration
Swift
public var revoked: Bool -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public init(index: Int = -1, publicKey: Flow.PublicKey, signAlgo: SignatureAlgorithm, hashAlgo: HashAlgorithm, weight: Int, sequenceNumber: Int64 = -1, revoked: Bool = false) -
Encode the account key with RLP encoding
Declaration
Swift
public var encoded: Data? { get }
View on GitHub