DomainTag
enum DomainTag
The prefix when encoding transaction and user with RLP
-
Declaration
Swift
public typealias RawValue = String -
The tag for transaction
Declaration
Swift
case transaction -
The tag for user
Declaration
Swift
case user -
The tag for account proof
Declaration
Swift
case accountProof -
Custom domain tag
Declaration
Swift
case custom(String) -
The rawValue for domain tag
Declaration
Swift
public var rawValue: String { get } -
Init a domain tag by string If it’s not the default one, then it will return a .custom(string) type
Declaration
Swift
public init?(rawValue: String) -
Convert tag string into data with
.uft8format And padding zero to right until 32 bytes long.Declaration
Swift
public var normalize: Data { get }
View on GitHub