Signature
public struct Signature : Equatable, LosslessStringConvertible
A Steem signature.
-
Create a new signature from a byte buffer.
Declaration
Swift
public init?(_ data: Data)
Parameters
data
The 65-byte signature.
-
Create a new signature from a hex encoded string.
Declaration
Swift
public init?(_ hex: String)
Parameters
hex
The 65-byte hex string.
-
Recover public key used to sign the message.
Declaration
Parameters
message
The 32-byte message that was signed.
prefix
The 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