Signature
public struct Signature : Equatable, LosslessStringConvertible
A Steem signature.
-
Create a new signature from a byte buffer.
Declaration
Swift
public init?(_ data: Data)Parameters
dataThe 65-byte signature.
-
Create a new signature from a hex encoded string.
Declaration
Swift
public init?(_ hex: String)Parameters
hexThe 65-byte hex string.
-
Recover public key used to sign the message.
Declaration
Parameters
messageThe 32-byte message that was signed.
prefixThe address prefix to use for the resulting public key, optional.
Return Value
The public key used to create the signature or nil if the recovery was unsucessful.
-
Hex string representation of signature.
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Signature Structure Reference