Giter Club home page Giter Club logo

safex_addressjs's Introduction

Build Status

safex

WARNING: all code is still in a testing phase!! #install

Building from source

Ubuntu 14.04, 15.04, 15.10

Install Rust Stable

# install rust stable
curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh

# install stable and make it default
sudo multirust update stable
sudo multirust default stable
OSX with Homebrew
# install multirust
brew update
brew install multirust

# install stable and make it default
multirust update stable && multirust default stable

Generate bitcoin keys

# download and build safex/safex
git clone https://github.com/safex/safex
cd safex
cargo run --example keys

Import base64 bitcoin private key

# download and build safex/safex
git clone https://github.com/safex/safex
cd safex
cargo run --example import

Run some tests

# download and build safex/safex
git clone https://github.com/safex/safex
cd safex
cargo run --example testkeys

safex_addressjs's People

Contributors

ddabek avatar panta82 avatar vangrx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

safex_addressjs's Issues

Crash when generating addresses

Node v10.9.0

Distributor ID:	Debian
Description:	Debian GNU/Linux 9.4 (stretch)
Release:	9.4
Codename:	stretch
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.

/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:18
})({"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array},{"abort":abort,"assert":assert,"asmPrintInt":asmPrintInt,"asmPrintFloat":asmPrintFloat,"min":Math_min,"SAFE_HEAP_LOAD":SAFE_HEAP_LOAD,"SAFE_HEAP_STORE":SAFE_HEAP_STORE,"SAFE_FT_MASK":SAFE_FT_MASK,"_free":_free,"___setErrNo":___setErrNo,"_malloc":_malloc,"_emscripten_memcpy_big":_emscripten_memcpy_big,"_fflush":_fflush,"___assert_fail":___assert_fail,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"cttz_i8":cttz_i8,"ctlz_i8":ctlz_i8,"NaN":NaN,"Infinity":Infinity},buffer);var _strlen=Module["_strlen"]=asm["_strlen"];var _ge_mul8=Module["_ge_mul8"]=asm["_ge_mul8"];var _keccak=Module["_keccak"]=asm["_keccak"];var _ge_scalarmult=Module["_ge_scalarmult"]=asm["_ge_scalarmult"];var _ge_fromfe_frombytes_
abort() at Error
    at jsStackTrace (/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:1:24776)
    at stackTrace (/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:1:24959)
    at abort (/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:18:29498)
    at enlargeMemory (/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:1:25292)
    at Object.dynamicAlloc (/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:1:11266)
    at Object._malloc (/home/panta/dev/safex/safex_addressjs/lib/ecmascripten.js:1:143690)
    at CnUtil.keccak (/home/panta/dev/safex/safex_addressjs/lib/cnUtil.js:183:30)
    at CnUtil.cn_fast_hash (/home/panta/dev/safex/safex_addressjs/lib/cnUtil.js:124:26)
    at CnUtil.pubkeys_to_string (/home/panta/dev/safex/safex_addressjs/lib/cnUtil.js:144:29)
    at CnUtil.create_address (/home/panta/dev/safex/safex_addressjs/lib/cnUtil.js:217:33)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

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.