@accumulators/core
Advanced tools
Comparing version 4.2.0-alpha.0 to 4.2.0-alpha.1
export type hash = (data: string) => string; | ||
export type HasherOptions = { | ||
blockSizeBits: number; | ||
shouldPad?: boolean; | ||
}; | ||
@@ -14,4 +15,4 @@ export declare const defaultHasherOptions: HasherOptions; | ||
static byteSize: (str: string) => number; | ||
hashSingle(data: string): string; | ||
hashSingle: (data: string) => string; | ||
getGenesis(): HexString; | ||
} |
@@ -15,5 +15,3 @@ "use strict"; | ||
static byteSize = (str) => new Blob([str.startsWith("0x") ? str.slice(2) : str]).size; | ||
hashSingle(data) { | ||
return this.hash([data]); | ||
} | ||
hashSingle = (data) => this.hash([data]); | ||
getGenesis() { | ||
@@ -20,0 +18,0 @@ const s = exports.GENESIS_STRING; |
{ | ||
"name": "@accumulators/core", | ||
"version": "4.2.0-alpha.0", | ||
"version": "4.2.0-alpha.1", | ||
"description": "A collection of TypeScript accumulators packages, each using the core package", | ||
@@ -28,3 +28,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "5ead754b9e1bd4259a19cb8f98f67b5809e478ae" | ||
"gitHead": "fb6478c72a6f6a33a4658538186c99f4481759de" | ||
} |
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
10712
169