security/vectors/cashaddr — CashAddr test vectors (third-party material)
Not SP Boucher code: the files keep the licence of their source and carry no SP Boucher header.
../MANIFEST.json pins the SHA-256 of each file.
| File | Source | Pinned revision | Licence |
|---|---|---|---|
cashaddr-spec-vectors.json |
CashAddr specification, https://github.com/bitcoincashorg/bitcoincash.org spec/cashaddr.md |
a86ce75cbdce8b14fa90b2315ebc7f0d78e6c9cb (last change of the file, 2018-12-13) |
MIT (COPYING of the repository, © 2017 bitcoincash.org) |
bchn-cashaddr-tests.json |
Bitcoin Cash Node, https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node src/test/cashaddr_tests.cpp |
07576013c91ff4a3a74acd85f189c69121cdad1b (tag v29.2.0) |
MIT (© 2017 Pieter Wuille, © 2017-present The Bitcoin developers) |
What was extracted, without changing a character of the values:
cashaddr-spec-vectors.json: the table "Examples of address translation" (6 pairs legacy address / CashAddr, keytranslation) and the table "Larger Test Vectors" (32 rows: payload size, type, CashAddr, payload in hexadecimal, keylarger; hash sizes 20, 24, 28, 32, 40, 48, 56 and 64 bytes, prefixesbitcoincash,bchtest,prefandprefix, types 0, 1 and 15). The specification text has no list of invalid addresses.bchn-cashaddr-tests.json: the string lists of the test casescashaddr_testvectors_valid(6),cashaddr_testvectors_invalid(24) andcashaddr_testvectors_noprefix(7). They exercise the checksum layer (prefix, character set, case, polynomial) on payloads that are not addresses.
Replayed by security/tests/Tests/ConformanceAuditTests/UTXOCoinsVectors.swift.