Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge PR #135, #191 and #192 into main #195

Merged
merged 6 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/get-started/cardano-serialization-lib/generating-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ const bip32PrivateKey = CardanoWasm.BIP32PrivateKey.from_128_xprv(xprvBytes);
assert(xprvBytes == CardanoWasm.BIP32PrivateKey.to_128_xprv());
```
96-byte `XPrv` keys are identical to `BIP32PrivateKey`s byte-wise and no conversion is needed.
For more details see [this document](https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/keys_and_addresses.html) regarding legacy keys.

There is also `LegacyDaedalusPrivateKey` which is used for creating witnesses for legacy Daedalus `Dd`-type addresses.


## Legacy Key

To generate Byron-era _payment key, the payment key files use the following format:
```json
{
"type": "PaymentSigningKeyByron_ed25519_bip32",
"description": "Payment Signing Key",
"cborHex": "hex-here"
}
```

Where the hex-here is generated as `0x5880 | xprv | pub | chaincode`
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const metadata = CardanoWasm.encode_json_str_to_metadatum(JSON.stringify(obj), C
const metadataString = CardanoWasm.decode_metadatum_to_json_str(metadata, CardanoWasm.MetadataJsonSchema.NoConversions);
```

To support an extended set of metadata we also support 3 additional modes for JSON conversion following IOHK's [cardano-node JSON schemas](https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/MetaData.hs).
To support an extended set of metadata we also support 3 additional modes for JSON conversion following IOHK's [cardano-node JSON schemas](https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/TxMetadata.hs).

The three modes are:
* `NoConversions` - Faithfully converts between the minimal shared feature set between JSON and Metadata
Expand Down
6 changes: 6 additions & 0 deletions src/data/builder-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ const tools = [
website: "https://github.com/Berry-Pool/cardanocli-js",
gettingstarted: "/docs/get-started/cardanocli-js",
},
{
title: "Cardano Metadata Oracle",
description: "Oracle submitting information using Cardano Metadata",
preview: require("./builder-tools/cardano-metadata-oracle.png"),
website: "https://github.com/fivebinaries/cardano-metadata-oracle",
},
{
title: "Cardano Serialization Library",
description:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/data/showcase/jesart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/data/showcases.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,15 @@ const Showcases = [
source: null,
tags: ["nft"],
},
{
title: "JES-Art",
description:
"16 year old female fine art NFTs on the Cardano blockchain!",
preview: require("./showcase/jesart.png"),
website: "https://www.jes-art.com",
source: null,
tags: ["nft"],
},
{
title: "Stellar Hood",
description:
Expand Down