Add Kaspa namespace with CAIP-2 and CAIP-10 profiles - #193
Open
elldeeone wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces the Kaspa namespace to the ChainAgnostic namespaces registry.
Added Files
kaspa/README.md- Namespace profile for the Kaspa ecosystemkaspa/caip2.md- CAIP-2 chain identification profile for Kaspakaspa/caip10.md- CAIP-10 account identification profile for Kaspa addressesSummary
Kaspa is a proof-of-work Layer 1 with a native UTXO transaction model that uses GHOSTDAG consensus to order parallel blocks in a blockDAG.
This PR establishes the
kaspanamespace for identifying Kaspa networks and native recipient or locking addresses.Chain Identification (CAIP-2)
Networks in the Kaspa namespace are identified by the names defined by the Rusty Kaspa
NetworkIdimplementation.NetworkIdmainnetkaspa:mainnettestnet-10kaspa:testnet-10The identifier can be resolved through a Kaspa node's
getBlockDagInfoRPC method.The profile also records the configured genesis hashes for the registered networks and limits the initial namespace to mainnet and the stable public testnet-10 network.
Account Identification (CAIP-10)
Native Kaspa addresses use the form
<prefix>:<payload>.Because CAIP-10 does not allow
:insideaccount_address, this profile uses the native address payload without its prefix:The native prefix is restored from the CAIP-2 identifier before validating the address version, body length, and prefix-dependent checksum.
The profile includes canonicalization guidance and valid and invalid vectors for Schnorr public-key, ECDSA public-key, and script-hash addresses.
References