Bitcoin/address validation: Difference between revisions
m
rev4 now in sha256.e
m (rev4 now in sha256.e) |
|||
Line 1,399:
end if
return out
end function
Line 1,415 ⟶ 1,405:
procedure valid(string s)
object dec
coin_err = "OK"
dec = unbase58(s)
if string(dec) then
coin_err = "bad digest"
end if
Line 1,441 ⟶ 1,428:
"1badbadbadbadbadbadbadbadbadbadbad", -- not version 0
"BZbvjr", -- first character is not 1 or 3 (checksum is fine, address too short)
"16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM", -- OK (from public_point_to_address)
$}
|