mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Tidy the DEX pallet
This commit is contained in:
@@ -43,8 +43,8 @@ impl SeraiAddress {
|
||||
/// logarithm for a point whose representation has a known Blake2b-256 preimage.
|
||||
// The alternative would be to massage this until its not a valid point, which isn't worth the
|
||||
// computational expense as this should be a hard problem for outputs which happen to be points.
|
||||
pub fn system(label: &[u8]) -> Self {
|
||||
Self(sp_core::blake2_256(label))
|
||||
pub fn system(label: impl AsRef<[u8]>) -> Self {
|
||||
Self(sp_core::blake2_256(label.as_ref()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user