1.2.1 • Published 3 months ago

@swisstronik/utils v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Utils for encryption / decryption

Main purpose of this package is to provide set of helper functions for transaction data / query encryption and decryption of node response

Installation

npm install @swisstronik/utils

Examples

Convert bech32 address to ethereum and vice versa

import { bech32toEthAddress, ethAddressToBech32} from '@swisstronik/utils'

const originalBech32Address = "swtr13sllcdsqhjektac5r6h50dvjrthm0yt6zw3q4s"

const ethAddress = bech32toEthAddress(originalBech32Address) // 0x8C3FFC3600BCB365F7141EAF47B5921AEFB7917A
const bech32Address = ethAddressToBech32(ethAddress) // swtr13sllcdsqhjektac5r6h50dvjrthm0yt6zw3q4s
1.2.1

3 months ago

1.2.0

3 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.1-alpha.0

6 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago