SPB Git

Repository Public

README.md 1.7 KB 22 lines markdown

1# security/vectors/cashaddr — CashAddr test vectors (third-party material)23Not SP Boucher code: the files keep the licence of their source and carry no SP Boucher header.4`../MANIFEST.json` pins the SHA-256 of each file.56| File | Source | Pinned revision | Licence |7|---|---|---|---|8| `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) |9| `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) |1011What was extracted, without changing a character of the values:1213- `cashaddr-spec-vectors.json`: the table "Examples of address translation" (6 pairs legacy address / CashAddr,14  key `translation`) and the table "Larger Test Vectors" (32 rows: payload size, type, CashAddr, payload in15  hexadecimal, key `larger`; hash sizes 20, 24, 28, 32, 40, 48, 56 and 64 bytes, prefixes `bitcoincash`, `bchtest`,16  `pref` and `prefix`, types 0, 1 and 15). The specification text has no list of invalid addresses.17- `bchn-cashaddr-tests.json`: the string lists of the test cases `cashaddr_testvectors_valid` (6),18  `cashaddr_testvectors_invalid` (24) and `cashaddr_testvectors_noprefix` (7). They exercise the checksum layer19  (prefix, character set, case, polynomial) on payloads that are not addresses.2021Replayed by `security/tests/Tests/ConformanceAuditTests/UTXOCoinsVectors.swift`.22
Files main
Menu

Theme