Add klv namespace for the Klever Blockchain#185
Open
nickgs1337 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 adds a new namespace
klvfor the Klever Blockchain, a layer-1 proof-of-stake chain with ed25519 keys, Bech32 addresses prefixedklv1..., Wasmer-based smart contracts, and a native multi-asset model (KDA — Klever Digital Asset) that handles fungible tokens, NFTs, and SFTs as first-class on-chain primitives. The namespace covers chain identification (CAIP-2), account references (CAIP-10), and KDA asset references (CAIP-19).What changed
A new
klv/folder containing:README.md— namespace overview, governance pointer, references to the Klever ecosystem.caip2.md— chain id profile. References are the integerklv_chain_idexposed at/node/status. Test cases:klv:108(mainnet),klv:109(testnet),klv:100001(devnet).caip10.md— account id profile. Bech32 addresses with HRPklv, ed25519 keypairs, 32-byte raw address, 62-char total Bech32 string. Documents the smart-contract address pattern (klv1qqqqqqqqqqqq...) and includes a real on-chain SC address example from the protocol test suite.caip19.md— asset id profile. Single asset namespacekdacovering fungible / NFT / SFT (type lives in metadata, not the identifier). Documents theTICKER-NONCEshape whereNONCEis a 4-character base36 suffix generated deterministically by the protocol.Why
Klever has been live on mainnet since 2022 and operates a public block explorer, REST API, and TypeScript SDK, but does not yet have a CAIP-2 namespace registered. Adopting CAIP-2 / CAIP-10 / CAIP-19 lets cross-chain tooling — wallets, indexers, bridges, agent-driven signing surfaces — refer to Klever chains, accounts, and KDA tokens unambiguously without each tool inventing its own shape.
Every technical claim in the namespace files is traced to a specific path in the Klever node source (klever-io/klever-go) so reviewers can verify directly:
klvwithfromBits=8, toBits=5, pad=true—crypto/pubkeyConverter/bech32PubkeyConverter.gocrypto/signing/ed25519/core/address.go(constantsNumInitCharactersForScAddress = 10,VMTypeLen = 2)Fungible = 0,NonFungible = 1,SemiFungible = 2) —data/transaction/contracts.pb.go-separator) —core/process/kda/assetHelper.go(CreateNewAssetIdentifier) andcore/process/kda/kdautils/utils.go(TickerSeparator = "-",TickerRandomSequenceLength = 4)The integer chain IDs in CAIP-2 (
klv:108mainnet,klv:109testnet,klv:100001devnet) were verified live againsthttps://node.mainnet.klever.org/node/status(theklv_chain_idfield).SLIP-44 coin type
690(registered asKLV/KleverChain) is documented in the SLIP-44 registry.References