Coder Social home page Coder Social logo

kaspa-core-lib's Introduction

JavaScript Data Primitives Library for Kaspa

PLEASE NOTE: This project is under heavy development and is not production ready

Based on the popular Bitcore library developed by BitPay for the Bitcoin, Kaspacore library provides primitives for interfacing with the Kaspa network.

Get Started

git clone [email protected]:aspectron/kaspacore-lib

Adding Kaspacore to your app's package.json:

"dependencies": {
    "aspectron/kaspacore-lib": "*"
}

Kaspa adaptation

Kaspacore library provides primitives such as Transaction and UTXO data structures customized for use with the next-generation high-performance Kaspa network.

Documentation

The complete docs are hosted here: bitcore documentation. There's also a bitcore API reference available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility.

Building the Browser Bundle

To build a kaspacore-lib full bundle for the browser:

gulp browser

This will generate files named kaspacore-lib.js and kaspacore-lib.min.js.

You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout the releases.

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Bitcore - Copyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.
Kaspacore - Copyright 2020 ASPECTRON Inc.

kaspa-core-lib's People

Contributors

aspect avatar someone235 avatar surinder83singh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kaspa-core-lib's Issues

how to support ecdsa address and output script

network: 'mainnet',
address: 'kaspa:qyph47ecjvpkkqw5x3khqxzh7u0w9cqqzxmq0z9vtzt3fprmn758ujs8zwlaws0' --> this is ecdsa type adress

const { address } = params;
try {
kaspacore.Address(address);
return true;
}
catch (error) {
console.error(error);
return false;
}

Invalid Argument: Invalid hash size:kaspa:qyph47ecjvpkkqw5x3khqxzh7u0w9cqqzxmq0z9vtzt3fprmn758ujs8zwlaws0

--> need build ecdsa output script

tx.addOutput(new kaspacore.Transaction.Output({
script: new kaspacore.Script(new kaspacore.Address(output.address)).toBuffer().toString('hex'),
satoshis: amount,
}));

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.