Commit 57ca2d5f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] Signature unlock must be a Base58 string

parent 195d9221
......@@ -5,6 +5,7 @@ const UDID2 = "udid2;c;([A-Z-]*);([A-Z-]*);(\\d{4}-\\d{2}-\\d{2});(e\\+\\
const USER_ID = "[A-Za-z0-9_-]{2,100}";
const BASE58 = "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+";
const PUBKEY = "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}";
const SIG = "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}";
const TIMESTAMP = "[1-9][0-9]{0,18}";
const POSITIVE_INT = "[1-9][0-9]{0,18}";
const DIVIDEND = "[1-9][0-9]{0,5}";
......@@ -22,7 +23,7 @@ const SIGNATURE = "[A-Za-z0-9+\\/=]{87,88}";
const FINGERPRINT = "[A-F0-9]{64}";
const COMMENT = "[ a-zA-Z0-9-_:/;*\\[\\]()?!^\\+=@&~#{}|\\\\<>%.]{0,255}";
const UNLOCK = "(SIG\\(" + INTEGER + "\\)|XHX\\(" + XUNLOCK + "\\))";
const CONDITIONS = "(&&|\\|\\|| |[()]|(SIG\\([0-9a-zA-Z]{43,44}\\)|(XHX\\([A-F0-9]{64}\\)|CLTV\\(" + CLTV_INTEGER + "\\)|CSV\\(" + CSV_INTEGER + "\\))))*";
const CONDITIONS = "(&&|\\|\\|| |[()]|(SIG\\(" + SIG + "\\)|(XHX\\([A-F0-9]{64}\\)|CLTV\\(" + CLTV_INTEGER + "\\)|CSV\\(" + CSV_INTEGER + "\\))))*";
const BLOCK_UID = INTEGER + "-" + FINGERPRINT;
const META_TS = "META:TS:" + BLOCK_UID;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment