Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /java /cardano-foundation_cf-reeve-platform /docs /keri /CreateIdentifier.java
| /// usr/bin/env jbang "$0" "$@" ; exit $? | |
| /// | |
| // @formatter:off | |
| //JAVA 24+ | |
| //COMPILE_OPTIONS -source 24 | |
| //RUNTIME_OPTIONS | |
| //REPOS snapshots=https://central.sonatype.com/repository/maven-snapshots/ | |
| //REPOS central=https://repo.maven.apache.org/maven2 | |
| //DEPS org.cardanofoundation:signify:0.1.2-ebfb904-SNAPSHOT | |
| //SOURCES KeriUtils.java | |
| // @formatter:on | |
| import org.cardanofoundation.signify.app.clienting.SignifyClient; | |
| import org.cardanofoundation.signify.app.coring.Coring; | |
| public class CreateIdentifier { | |
| private static final String KERI_URL = "https://keria.cardano-foundation.app.reeve.technology"; | |
| private static final String KERI_BOOT_URL = "https://keria-boot.cardano-foundation.app.reeve.technology"; | |
| private static final String CLIENT_NAME = "GTReeveClient"; | |
| public static void main(String[] args) throws Exception { | |
| String passcode = Coring.randomPasscode(); | |
| SignifyClient client = KeriUtils.getOrCreateClient(KERI_URL, KERI_BOOT_URL, passcode); | |
| KeriUtils.Aid aid = KeriUtils.createAid(client, CLIENT_NAME); | |
| System.out.println("=== Identifier Created Successfully ==="); | |
| System.out.println("Identifier Prefix (AID): " + aid.prefix()); | |
| System.out.println("OOBI: " + aid.oobi()); | |
| System.out.println("Passcode: " + passcode); | |
| System.out.println(); | |
| System.out.println("Save these credentials - you'll need them to access this identifier!"); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 1.45 kB
- Xet hash:
- e9918f3079efe4213447ef4a3c4730bbc6c7ac1d66e98b9d1fa247dd558bde9c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.