pow_sha256-polyfill/src/test-data.ts

73 lines
2.4 KiB
TypeScript
Raw Normal View History

2021-12-07 18:59:11 +05:30
export const SALT = "13b9bb30d3eef8ed0fd295b9e0df87";
export const DIFFICULTY = 50_000;
export type Work = {
result: BigInt;
nonce: number;
};
export type TestCase = {
hash: number[];
phrase: string;
difficulty: BigInt;
pow: Work;
};
export const DATA: TestCase[] = [
{
hash: [
47, 101, 162, 84, 166, 91, 234, 57, 146, 8, 7, 204, 97, 52, 41, 37, 212,
132, 0, 202, 248, 146, 120, 58, 43, 64, 208, 84, 176, 55, 69, 136,
],
phrase: "05f9d799906c8f24a857035828a5b9",
difficulty: 63001430241610136361445834740200646949n,
pow: { nonce: 26252, result: 340279805739743599719846742581033620214n },
},
{
hash: [
133, 223, 94, 43, 33, 232, 77, 220, 151, 38, 119, 200, 208, 99, 45, 83,
222, 108, 219, 245, 85, 75, 59, 43, 92, 141, 244, 148, 89, 96, 237, 150,
],
phrase: "213d6dd55cf6832511d252738f7a92",
difficulty: 177947115602654652833404390131160526163n,
pow: { nonce: 60575, result: 340278414335956606302945694552807993005n },
},
{
hash: [
171, 67, 121, 9, 45, 64, 96, 172, 5, 149, 157, 213, 250, 144, 218, 96,
214, 148, 128, 206, 86, 171, 68, 29, 95, 95, 112, 121, 138, 126, 128, 86,
],
phrase: "ee07b5f3334b34f8fd3de57e42b4db",
difficulty: 227648326067362605413003488329154484832n,
pow: { nonce: 23137, result: 340277195032614697077113410152730227991n },
},
{
hash: [
36, 190, 116, 176, 153, 186, 240, 175, 191, 37, 30, 115, 110, 103, 98,
125, 125, 98, 187, 194, 157, 182, 20, 80, 41, 222, 175, 213, 112, 133, 50,
112,
],
phrase: "8ba09df26c1f5dcb2cb98d03d7d722",
difficulty: 48841111002626418093274109489443201661n,
pow: { nonce: 22301, result: 340278428905063208891549488950915996956n },
},
{
hash: [
112, 64, 155, 33, 190, 131, 46, 182, 237, 16, 37, 88, 74, 249, 22, 43, 74,
176, 98, 43, 126, 38, 48, 83, 95, 19, 175, 230, 255, 83, 154, 134,
],
phrase: "3e3797ed9aa3795ea39b7f4717f059",
difficulty: 149208988973835477464764102273542985259n,
pow: { nonce: 137357, result: 340280269515089406740131293904901909456n },
},
{
hash: [
64, 98, 92, 170, 254, 224, 63, 225, 98, 245, 200, 10, 164, 179, 142, 202,
20, 151, 6, 64, 229, 65, 110, 187, 145, 106, 185, 169, 75, 113, 75, 187,
],
phrase: "281e77e4bb60089b0527aa1709dfc8",
difficulty: 85581316351722485897008021844371148490n,
pow: { nonce: 15653, result: 340277381042137197242567251635170935146n },
},
];