UnsafePointer in Swift
Issue #130
Code is in Swift 4
Constructing UnsafeMutablePointer
1 | let byteCount = 32 |
Data to UnsafePointer
1 | extension Data { |
UnsafePointer to Data
1 | extension UnsafePointer { |
Dealing with C API
This is how to do keccak hash using C API from https://github.com/ethereum/ethash/blob/master/src/libethash/sha3.c
1 | class KeccakHash { |