Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
890a90f9
Commit
890a90f9
authored
8 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix]
#893
Allow any 1-64 chars password for XHX unlocking
parent
898dd290
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/constants.js
+2
-1
2 additions, 1 deletion
app/lib/constants.js
with
2 additions
and
1 deletion
app/lib/constants.js
+
2
−
1
View file @
890a90f9
...
...
@@ -10,6 +10,7 @@ const POSITIVE_INT = "[1-9][0-9]{0,18}";
const
DIVIDEND
=
"
[1-9][0-9]{0,5}
"
;
const
ZERO_OR_POSITIVE_INT
=
"
0|[1-9][0-9]{0,18}
"
;
const
INTEGER
=
"
(0|[1-9]
\\
d{0,18})
"
;
const
XUNLOCK
=
"
[a-zA-Z0-9]{1,64}
"
;
const
RELATIVE_INTEGER
=
"
(0|-?[1-9]
\\
d{0,18})
"
;
const
FLOAT
=
"
\\
d+
\
.
\\
d+
"
;
const
BOOLEAN
=
"
[01]
"
;
...
...
@@ -18,9 +19,9 @@ const TX_VERSION = "(10)";
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
\\
(
"
+
INTEGER
+
"
\\
))
"
;
const
CONDITIONS
=
"
(&&|
\\
|
\\
|| |[()]|(SIG
\\
([0-9a-zA-Z]{43,44}
\\
)|(XHX
\\
([A-F0-9]{64}
\\
))))*
"
;
//const CONDITIONS = "(&&|\|\|| |[()]|(SIG\\(\\da-zA-Z\\))|(XHX\\(" + FINGERPRINT + "\\)))*";
const
UNLOCK
=
"
(SIG
\\
(
"
+
INTEGER
+
"
\\
)|XHX
\\
(
"
+
XUNLOCK
+
"
\\
))
"
;
const
BLOCK_UID
=
INTEGER
+
"
-
"
+
FINGERPRINT
;
const
META_TS
=
"
META:TS:
"
+
BLOCK_UID
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment