Changeset View
Changeset View
Standalone View
Standalone View
src/script/descriptor.cpp
Show All 30 Lines | |||||
// the number of symbol errors, the harder it is to detect: | // the number of symbol errors, the harder it is to detect: | ||||
// * An error substituting a character from 0123456789()[],'/*abcdefgh@:$%{} | // * An error substituting a character from 0123456789()[],'/*abcdefgh@:$%{} | ||||
// for | // for | ||||
// another in that set always counts as 1 symbol error. | // another in that set always counts as 1 symbol error. | ||||
// * Note that hex encoded keys are covered by these characters. Xprvs and | // * Note that hex encoded keys are covered by these characters. Xprvs and | ||||
// xpubs use other characters too, but already have their own checksum | // xpubs use other characters too, but already have their own checksum | ||||
// mechanism. | // mechanism. | ||||
// * Function names like "multi()" use other characters, but mistakes in | // * Function names like "multi()" use other characters, but mistakes in | ||||
// these would generally result in an unparseable descriptor. | // these would generally result in an unparsable descriptor. | ||||
// * A case error always counts as 1 symbol error. | // * A case error always counts as 1 symbol error. | ||||
// * Any other 1 character substitution error counts as 1 or 2 symbol errors. | // * Any other 1 character substitution error counts as 1 or 2 symbol errors. | ||||
// * Any 1 symbol error is always detected. | // * Any 1 symbol error is always detected. | ||||
// * Any 2 or 3 symbol error in a descriptor of up to 49154 characters is always | // * Any 2 or 3 symbol error in a descriptor of up to 49154 characters is always | ||||
// detected. | // detected. | ||||
// * Any 4 symbol error in a descriptor of up to 507 characters is always | // * Any 4 symbol error in a descriptor of up to 507 characters is always | ||||
// detected. | // detected. | ||||
// * Any 5 symbol error in a descriptor of up to 77 characters is always | // * Any 5 symbol error in a descriptor of up to 77 characters is always | ||||
▲ Show 20 Lines • Show All 1,103 Lines • Show Last 20 Lines |