Skip to content

Kryptokrona library in JS/TS for building decentralized private communication and payment systems.

License

Notifications You must be signed in to change notification settings

kryptokrona/kryptokrona-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

be5980e · Apr 27, 2022
Jan 3, 2020
Dec 10, 2020
May 18, 2021
Dec 10, 2020
May 18, 2021
Nov 17, 2021
Dec 10, 2020
Dec 10, 2020
Dec 10, 2020
Nov 27, 2018
Dec 10, 2020
Dec 10, 2020
Apr 27, 2022
Dec 10, 2020
Dec 10, 2020
Dec 10, 2020

Repository files navigation

Kryptokrona Utilities

Overview

This package contains a number of different utility libraries that help with the following network and wallet based activities:

  • Wallet (and Address) generation, verification, and encoding/decoding
  • Block handling, construction, decoding, and ID and PoW hash calculation
  • Block template handling
  • Multisig operations including Multisig participant message exchanges
  • RPC interations with TurtleCoind and Wallet-API
  • Network P2P communication protocols (connect to the P2P network directly)
  • Transaction construction facilities
  • Ledger hardware wallet support
  • Transaction handling, construction, decoding, hash calculations, TX_EXTRA parsing, etc
  • Deterministic subwallet generation
  • And much, much, more...

If you experience any issues with this library, the best way to address such situations is to submit a Pull Request to resolve the issue you are running into.

Installation

npm install kryptokrona-utils

Initialization

TypeScript

import {
    Address, 
    AddressPrefix, 
    Block, 
    BlockTemplate, 
    CryptoNote, 
    LevinPacket, 
    Transaction
} from 'kryptokrona-utils'
const coinUtils = new CryptoNote()

Javascript

const KryptokronaUtils = require('kryptokrona-utils')
const coinUtils = new KryptokronaUtils.CryptoNote()

Browser Support

When packing for the browser with a tool like webpack we advise that you use the ready event of the webpacked module to determine when the Cryptographic methods are available.

<script src="KryptokronaUtils.js"></script>
<script>
  KryptokronaUtils.on('ready', () => {
    const coinUtils = new KryptokronaUtils.CryptoNote()
  })
</script>

Credits

Special thanks goes out to: