Data - p2p-org/solana-swift GitHub Wiki
Extensions on Data
Initializers
init(hex:)
public init(hex: String)
Properties
decodedLength
var decodedLength: Int
hexString
Hexadecimal string representation of the underlying data
public var hexString: String
bytes
public var bytes: [UInt8]
Methods
decodeLength()
mutating func decodeLength() throws -> Int
encodeLength(_:)
static func encodeLength(_ len: Int) -> Data
ask_BTCHash160()
public func ask_BTCHash160() -> Data
checksum()
Two octet checksum as defined in RFC-4880. Sum of all octets, mod 65536
public func checksum() -> UInt16
toHexString()
public func toHexString() -> String
sha256()
public func sha256() -> Data