Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit f8327104 authored by Éloïs's avatar Éloïs
Browse files

[fix] accept short base58 public keys

parent 6133f767
......@@ -18,7 +18,7 @@ const GT = "g1-test";
const CURRENCY = "[a-zA-Z0-9-_ ]{2,50}";
const BASE58 = "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+";
const PUBKEY =
"[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}";
"[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{40,44}";
const SIGNATURE = "[A-Za-z0-9+\\/=]{87,88}";
const USER_ID = "[A-Za-z0-9_-]{2,100}";
const INTEGER = "(0|[1-9]\\d{0,18})";
......
......@@ -23,7 +23,7 @@ export const BMAConstants = {
PORT_START: 15000,
UPNP_INTERVAL: 300,
UPNP_TTL: 600,
PUBLIC_KEY: /^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$/,
PUBLIC_KEY: /^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{40,44}$/,
SHA256_HASH: /^[A-F0-9]{64}$/,
ERRORS: {
......
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