(content: Buffer)
| 101 | |
| 102 | // Used to calculate sha256 |
| 103 | export function hash256(content: Buffer) { |
| 104 | return bitcore.crypto.Hash.sha256(content); |
| 105 | } |
| 106 | |
| 107 | // Sign the sha256 of encrypted data using the private key, return hash256 and sig signature |
| 108 | export function signContent(content: Buffer, privateKey: string) { |
no outgoing calls
no test coverage detected