Skip to content

Commit

Permalink
version 1.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglescode committed Aug 23, 2024
1 parent e6c6c4a commit 7f01a7f
Show file tree
Hide file tree
Showing 12 changed files with 420 additions and 323 deletions.
590 changes: 279 additions & 311 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/mesh-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/common",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/contract",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-core-csl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-csl",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/mesh-core-cst/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-cst",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down Expand Up @@ -39,9 +39,9 @@
"@cardano-sdk/core": "^0.35.4",
"@cardano-sdk/crypto": "^0.1.28",
"@cardano-sdk/util": "^0.15.4",
"@harmoniclabs/cbor": "^1.3.0",
"@harmoniclabs/plutus-data": "^1.2.4",
"@harmoniclabs/uplc": "^1.2.4",
"@harmoniclabs/cbor": "1.3.0",
"@harmoniclabs/plutus-data": "1.2.4",
"@harmoniclabs/uplc": "1.2.4",
"@meshsdk/common": "*",
"blakejs": "^1.1.1",
"bn.js": "^5.2.0",
Expand Down
79 changes: 79 additions & 0 deletions packages/mesh-core-cst/src/stricahq/bip32ed25519/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
> This package is by [Strica](https://github.com/StricaHQ/bip32ed25519)
<p align="center">
<a href="https://strica.io/" target="_blank">
<img src="https://docs.strica.io/images/logo.png" width="200">
</a>
</p>

# Bip32Ed25519

Pure javascript implementation of [Bip32Ed25519](https://ieeexplore.ieee.org/document/7966967), used for Cardano blockchain key pair.

- Create extended keys with Bip39 mnemonic entropy
- Soft and hard derivation
- Derive keys with user friendly API
- Sign and verify data

## Installation

### yarn/npm

```sh
yarn add @stricahq/bip32ed25519
```

### Browser

```html
<script src="[use jsDelivr or Unpkg]"></script>

// access bip32ed25519 global variable
```

## Usage Example

```js
import { Bip32PrivateKey } from "@stricahq/bip32ed25519";

... // Bip39 entropy from mnemonics
const rootKey = await Bip32PrivateKey.fromEntropy(entropy);
...

// hardened derivation
const accountKey = rootKey
.derive(2147483648 + 1852) // purpose
.derive(2147483648 + 1815) // coin type
.derive(2147483648 + 0); // account index

const spendingKey = accountKey
.derive(0) // chain
.derive(0) // payment key index
.toPrivateKey();

const pubKey = spendingKey
.toPublicKey()
.toBytes();
```
Checkout tests and API doc for more details

## API Doc
Find the API documentation [here](https://docs.strica.io/lib/bip32ed25519)

## Used by
[Typhon Wallet](https://typhonwallet.io)

# License
Copyright 2021 Strica

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
50 changes: 50 additions & 0 deletions packages/mesh-core-cst/src/stricahq/cbors/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
> This package is by [Strica](https://github.com/StricaHQ/cbors)
<p align="center">
<a href="https://strica.io/" target="_blank">
<img src="https://docs.strica.io/images/logo.png" width="200">
</a>
</p>

# @stricahq/cbors
CBOR ([RFC 7049](http://tools.ietf.org/html/rfc7049)) encoder and decoder for javascript data types with streaming support. cbors implements annotations for deriving sub-cbor buffer from original cbor buffer which is a requirement for working with Cardano data types.

## Installation

### yarn/npm

```sh
yarn add @stricahq/cbors
```

### Browser

```html
<script src="[use jsDelivr or Unpkg]"></script>

// access cbors global variable
```



## Usage

please see tests for usage examples and available data types

## API Doc
Find the API documentation [here](https://docs.strica.io/lib/cbors)

# License
Copyright 2022 Strica

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2 changes: 1 addition & 1 deletion packages/mesh-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/provider",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/react",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-transaction/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/transaction",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/wallet",
"version": "1.6.9",
"version": "1.6.10",
"description": "",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down

0 comments on commit 7f01a7f

Please sign in to comment.