@greymass/eosio
Advanced tools
Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "@greymass/eosio", | ||
"description": "Library for working with EOSIO blockchains", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"homepage": "https://github.com/greymass/eosio-core", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause-No-Military-License", |
@@ -139,6 +139,11 @@ import {abiEncode} from '../serializer/encoder' | ||
signingDigest(chainId: Checksum256Type): Checksum256 { | ||
const data = this.signingData(chainId) | ||
return Checksum256.hash(data) | ||
} | ||
signingData(chainId: Checksum256Type): Bytes { | ||
let data = Bytes.from(Checksum256.from(chainId).array) | ||
data = data.appending(abiEncode({object: this})) | ||
data = data.appending(new Uint8Array(32)) | ||
return Checksum256.hash(data) | ||
return data | ||
} | ||
@@ -145,0 +150,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
845736
16707