(webBundle: Uint8Array)
| 177 | } |
| 178 | |
| 179 | export function calcWebBundleHash(webBundle: Uint8Array): Uint8Array { |
| 180 | const hash = crypto.createHash('sha512'); |
| 181 | const data = hash.update(webBundle); |
| 182 | return new Uint8Array(data.digest()); |
| 183 | } |
| 184 | |
| 185 | export function generateDataToBeSigned( |
| 186 | webBundleHash: Uint8Array, |
no outgoing calls
no test coverage detected