Coder Social home page Coder Social logo

neo-utils's Introduction

neo-utils

Useful functions for the NEO blockchain written in Go.

This library can be fully compiled to native iOS and Android framework using gomobile bind

note: gomobile does not support slice parameter yet so some functions are optimized to take a comma separated string as a param instead of a array of string.
For methods specifically designed to be used on mobile see mobile.go

Installation

go get github.com/o3labs/neo-utils/neoutils

Compile this library to native mobile frameworks.

Install gomobile

go get golang.org/x/mobile/cmd/gomobile

gomobile init

Install Dependencies

. dep.sh

Compile to both iOS and Android frameworks

. build.sh

Compile to iOS framework

XCode is required.
gomobile bind -target=ios -o=output/ios/neoutils.framework github.com/o3labs/neo-utils/neoutils

Compile to Android framework

Android NDK is required. https://developer.android.com/ndk/guides/index.html

gomobile init -ndk ~/Library/Android/sdk/ndk-bundle/

ANDROID_HOME=/Users/$USER/Library/Android/sdk gomobile bind -target=android -o=output/android/neoutils.aar github.com/o3labs/neo-utils/neoutils

neo-utils's People

Contributors

apisit avatar saltyskip avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

neo-utils's Issues

Fix script parser

test case
0800a82ee53301000014d6498f44bb627af6e1ee4181403336aebb84aa96141374c2b998bf902fb50d6a731bcc675c645f9b7f53c1087472616e7366657267d674d88177ad28080323be1e03a150170eaf1d89

multi-sig address

  • Generate multi-sig address
  • Generate raw transaction to spend from multi-sig address

The Unity project reported an error when introducing the compiled neoutils.framework.

There is no problem with neoutils.framework for use in OC and Swift projects. Introduced in the project written in unity language, the compilation is successful but the runtime reports an error. The error message is "runtime/cgo: could not obtain pthread_keys tried xxx". The content screenshot is as follows.
unity_error_msg
I have checked the related documentation but have not found a solution. Thank you very much for helping to solve this problem as soon as possible.

Getting unspent/UTXO in a decentralized way

Is there a way to get unspent/UTXO data without API calls? I don't want to depend on it. Or is there the API server code so that I could copy UTXO generation from there?

Could you possibly also link to NEO API docs regarding unspent? I couldn't find it anywhere...

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.