UNPKG

as-pedersen

Version:

A pedersen hash implementation in AssemblyScript

34 lines (27 loc) 1.33 kB
export const PEDERSEN_TEST_VALUES: string[] = [ '99293938734', // x '23847612498123649182643192834', // y '0x6ad4ec4bb1202151c5428a9932aa83ec9771b06e38075f75acf34dd9cfd3bc9', // output '1', // x '87865764565345235', // y '0xc3ae40e14e8aac5ffeddf9df59982554af7638915f0d18f14c7ea42075fd08', // output '435', // x '3464575688967876745634234345235234523423545634643646534223', // y '0x6d7a9aa0cad487d2b184e811997c454cc4cb44e5c66cc11c058c6932b54b4e6', // output '598674576354633787498459846343746247826486246284624682', // x '3476436574376', // y '0x6300850b8bdd22ca4c42affc6c11a305f23f9a9af731b926fb019d064ff16d3', // output '42387324768347683478643578654897564989786597856498745367894536', // x '398432786423756543786534898937457894378954387954387958794879543', // y '0x5be89b15d8d930134379dda0eb4dd30d7bb33e371700a5368693dab02367bf6', // output ]; export const COMPUTE_HASH_ON_ELEMENTS_TEST_VALUES: string[] = [ '2387426735456', // a '2347264189237212378512673', // b '42', // c '0x4ff91c7325df20b8d522d3bc7680a3b3730f62553449bb9813c79f243c58e29', // output '823461287461247812648712641827461824', // a '289412764981274918274918274198247', // b '29847129846128946129481624918649182648192461928', // c '0x2604736c1691786ccec6755d25752b4595c36835baae68319fcb2228dbdf489', // output ];