Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
rust
Duniter v2S
Commits
b11cb4c7
Commit
b11cb4c7
authored
3 months ago
by
Éloïs
Committed by
Pascal Engélibert
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
rustfmt
parent
612107fc
No related branches found
No related tags found
1 merge request
!320
Resolve "Perf: use host function to verify legacy revocation document"
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pallets/distance/src/mock.rs
+3
-10
3 additions, 10 deletions
pallets/distance/src/mock.rs
pallets/duniter-wot/src/mock.rs
+3
-10
3 additions, 10 deletions
pallets/duniter-wot/src/mock.rs
pallets/identity/src/lib.rs
+3
-1
3 additions, 1 deletion
pallets/identity/src/lib.rs
with
9 additions
and
21 deletions
pallets/distance/src/mock.rs
+
3
−
10
View file @
b11cb4c7
...
@@ -45,14 +45,7 @@ impl From<AccountId32Mock> for u64 {
...
@@ -45,14 +45,7 @@ impl From<AccountId32Mock> for u64 {
impl
From
<
[
u8
;
32
]
>
for
AccountId32Mock
{
impl
From
<
[
u8
;
32
]
>
for
AccountId32Mock
{
fn
from
(
bytes
:
[
u8
;
32
])
->
Self
{
fn
from
(
bytes
:
[
u8
;
32
])
->
Self
{
Self
(
u64
::
from_be_bytes
([
Self
(
u64
::
from_be_bytes
([
bytes
[
0
],
bytes
[
0
],
bytes
[
1
],
bytes
[
2
],
bytes
[
3
],
bytes
[
4
],
bytes
[
5
],
bytes
[
6
],
bytes
[
7
],
bytes
[
1
],
bytes
[
2
],
bytes
[
3
],
bytes
[
4
],
bytes
[
5
],
bytes
[
6
],
bytes
[
7
]
]))
]))
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
pallets/duniter-wot/src/mock.rs
+
3
−
10
View file @
b11cb4c7
...
@@ -39,14 +39,7 @@ impl From<AccountId32Mock> for u64 {
...
@@ -39,14 +39,7 @@ impl From<AccountId32Mock> for u64 {
impl
From
<
[
u8
;
32
]
>
for
AccountId32Mock
{
impl
From
<
[
u8
;
32
]
>
for
AccountId32Mock
{
fn
from
(
bytes
:
[
u8
;
32
])
->
Self
{
fn
from
(
bytes
:
[
u8
;
32
])
->
Self
{
Self
(
u64
::
from_be_bytes
([
Self
(
u64
::
from_be_bytes
([
bytes
[
0
],
bytes
[
0
],
bytes
[
1
],
bytes
[
2
],
bytes
[
3
],
bytes
[
4
],
bytes
[
5
],
bytes
[
6
],
bytes
[
7
],
bytes
[
1
],
bytes
[
2
],
bytes
[
3
],
bytes
[
4
],
bytes
[
5
],
bytes
[
6
],
bytes
[
7
]
]))
]))
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
pallets/identity/src/lib.rs
+
3
−
1
View file @
b11cb4c7
...
@@ -176,7 +176,9 @@ pub mod pallet {
...
@@ -176,7 +176,9 @@ pub mod pallet {
type
Signer
:
IdentifyAccount
<
AccountId
=
Self
::
AccountId
>
;
type
Signer
:
IdentifyAccount
<
AccountId
=
Self
::
AccountId
>
;
/// Signature type for payload verification.
/// Signature type for payload verification.
type
Signature
:
Parameter
+
Verify
<
Signer
=
Self
::
Signer
>
+
From
<
sp_core
::
ed25519
::
Signature
>
;
type
Signature
:
Parameter
+
Verify
<
Signer
=
Self
::
Signer
>
+
From
<
sp_core
::
ed25519
::
Signature
>
;
/// The overarching event type.
/// The overarching event type.
type
RuntimeEvent
:
From
<
Event
<
Self
>>
+
IsType
<<
Self
as
frame_system
::
Config
>
::
RuntimeEvent
>
;
type
RuntimeEvent
:
From
<
Event
<
Self
>>
+
IsType
<<
Self
as
frame_system
::
Config
>
::
RuntimeEvent
>
;
...
...
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