Skip to content

Commit 6fd871f

Browse files
alinush0xmaayan
andcommitted
use underscores in scheme name for indexer
Co-authored-by: Maayan <maayan@aptoslabs.com>
1 parent 0d4aea8 commit 6fd871f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ export enum AccountAuthenticatorVariant {
156156
/**
157157
* Variants of private keys that can comply with the AIP-80 standard.
158158
* {@link https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md}
159+
*
160+
* Note: This must match the AIP-80 strings defined in the Rust `aptos-crypto` crate.
159161
*/
160162
export enum PrivateKeyVariants {
161163
Ed25519 = "ed25519",
@@ -189,7 +191,7 @@ export function anyPublicKeyVariantToString(variant: AnyPublicKeyVariant): strin
189191
case AnyPublicKeyVariant.FederatedKeyless:
190192
return "federated_keyless";
191193
case AnyPublicKeyVariant.SlhDsaSha2128s:
192-
return "slh-dsa-sha2-128s";
194+
return "slh_dsa_sha2_128s";
193195
default:
194196
throw new Error("Unknown public key variant");
195197
}

0 commit comments

Comments
 (0)