Giter Site home page Giter Site logo

ecdsa-motoko's Introduction

ecdsa-motoko's People

Contributors

herumi avatar jb747 avatar timohanke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ecdsa-motoko's Issues

Where should putPoint and putJacobi be defined?

I made putPoint and putJacobi in src/test_util.mo. Those functions are useful for a debug.
But I try to import it from src/curve.mo to use toHex for a debug, it causes an error.
If I move those functions to curve.mo, then it must include test_util.mo, so I think it is easy that toHex is defined in src/util.mo.
How about it?

Benchmark verify

A benchmark for verify would be the most relevant for the application in canisters.

Makefile is OS specific

The option in the time command time -f %U seems to be OS specific. It doesn't exist for example on MacOS.

Why is there a memory leak?

>make bench
time wasmtime bench-gen.wasm
start
RTS error: Cannot grow memory
Error: failed to run main module `bench-gen.wasm`

Caused by:
    0: failed to invoke command default
    1: wasm trap: unreachable
       wasm backtrace:
         0:  0x499 - <unknown>!rts_trap
         1: 0xe993 - <unknown>!motoko_rts::trap_with_prefix::h7f101abc2caab38e
         2: 0xd067 - <unknown>!motoko_rts::rts_trap_with::h1fdf0be2ac35ef35
         3: 0xd2e8 - <unknown>!motoko_rts::memory::ic::grow_memory::h7cf2cf3cf2e82fde
         4: 0xece4 - <unknown>!mp_calloc
         5: 0x2d31 - <unknown>!mp_init
         6: 0xc3ed - <unknown>!bigint_sub
         7: 0x19c8 - <unknown>!B+sub
         8: 0x1980 - <unknown>!extGcd
         9: 0x1858 - <unknown>!invMod
         10: 0x1841 - <unknown>!divMod
         11: 0x1830 - <unknown>!fpDiv
         12: 0x1b78 - <unknown>!dbl
         13: 0x15f9 - <unknown>!mul
         14:  0x60e - <unknown>!getPublicKey
         15:  0x55c - <unknown>!benchGen
         16:  0x525 - <unknown>!init
         17: 0x25d4 - <unknown>!_start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.