-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
447 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
common/src/main/java/com/strategyobject/substrateclient/common/types/AutoRegistry.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
crypto/src/main/java/com/strategyobject/substrateclient/crypto/ss58/SS58AddressFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.strategyobject.substrateclient.crypto.ss58; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(staticName = "of") | ||
@EqualsAndHashCode | ||
public class SS58AddressFormat { | ||
private final short prefix; | ||
|
||
/** | ||
* Polkadot Relay-chain, standard account (*25519). | ||
*/ | ||
public static final SS58AddressFormat POLKADOT_ACCOUNT = new SS58AddressFormat((short) 0); | ||
|
||
/** | ||
* Bare 32-bit Schnorr/Ristretto 25519 (S/R 25519) key. | ||
*/ | ||
public static final SS58AddressFormat BARE_SR_25519 = new SS58AddressFormat((short) 1); | ||
|
||
/** | ||
* Kusama Relay-chain, standard account (*25519). | ||
*/ | ||
public static final SS58AddressFormat KUSAMA_ACCOUNT = new SS58AddressFormat((short) 2); | ||
|
||
/** | ||
* Bare 32-bit Edwards Ed25519 key. | ||
*/ | ||
public static final SS58AddressFormat BARE_ED_25519 = new SS58AddressFormat((short) 3); | ||
|
||
/** | ||
* Any Substrate network, standard account (*25519). | ||
*/ | ||
public static final SS58AddressFormat SUBSTRATE_ACCOUNT = new SS58AddressFormat((short) 42); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.