Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wrappers/golang/cmd/demo/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
}

func readOnlyDemo() {
genesisFile, err := http.Get("https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/genesis_files/pool_transactions_testnet_genesis")
genesisFile, err := http.Get("https://raw.githubusercontent.com/bcgov/von-network/refs/heads/main/BCovrin/genesis_test")
if err != nil {
log.Fatalln(err)
}
Expand All @@ -50,7 +50,7 @@ func readOnlyDemo() {
d, _ := json.MarshalIndent(status, " ", " ")
fmt.Println(string(d))

rply, err := client.GetNym("345seGJDVMwcPhgpHAZb7u")
rply, err := client.GetNym("EyeymGxWv3YVXXJkjMEXBC")
if err != nil {
log.Fatalln(err)
}
Expand Down
5 changes: 2 additions & 3 deletions wrappers/python/demo/batch_get_txn.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ def get_script_dir():

def download_buildernet_genesis_file():
genesis_file_url = (
"https://raw.githubusercontent.com/sovrin-foundation/"
"sovrin/master/sovrin/pool_transactions_builder_genesis"
"https://raw.githubusercontent.com/bcgov/von-network/refs/heads/main/BCovrin/genesis_test"
)
target_local_path = f"{get_script_dir()}/genesis_sov_buildernet.txn"
target_local_path = f"{get_script_dir()}/genesis_bcovrin_testnet.txn"
LOGGER.info("Fetching genesis transactions")
urllib.request.urlretrieve(genesis_file_url, target_local_path)
return target_local_path
Expand Down
15 changes: 7 additions & 8 deletions wrappers/python/demo/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ async def basic_test(transactions_path):
# for the given did:indy namespace.
resolver = Resolver(autopilot=True)

log("Resolve DID did:indy:indicio:test:345seGJDVMwcPhgpHAZb7u")
doc = await resolver.resolve("did:indy:indicio:test:345seGJDVMwcPhgpHAZb7u")
log("Resolve DID did:indy:bcovrin:test:EyeymGxWv3YVXXJkjMEXBC")
doc = await resolver.resolve("did:indy:bcovrin:test:EyeymGxWv3YVXXJkjMEXBC")
log(json.dumps(doc, indent=2))

try:
doc = await resolver.resolve("did:indy:indicio:test:345seGJDVMwcPhgpHAZb7u")
doc = await resolver.resolve("did:indy:bcovrin:test:EyeymGxWv3YVXXJkjMEXBC")
except VdrError as err:
print(err)

Expand All @@ -232,12 +232,11 @@ def get_script_dir():
return os.path.dirname(os.path.realpath(__file__))


def download_indicio_testnet_genesis_file():
def download_bcovrin_testnet_genesis_file():
genesis_file_url = (
"https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/"
"genesis_files/pool_transactions_testnet_genesis"
"https://raw.githubusercontent.com/bcgov/von-network/refs/heads/main/BCovrin/genesis_test"
)
target_local_path = f"{get_script_dir()}/genesis_indicio_testnet.txn"
target_local_path = f"{get_script_dir()}/genesis_bcovrin_testnet.txn"
urllib.request.urlretrieve(genesis_file_url, target_local_path)
return target_local_path

Expand All @@ -246,6 +245,6 @@ def download_indicio_testnet_genesis_file():
log("indy-vdr version:", version())

genesis_path = (
sys.argv[1] if len(sys.argv) > 1 else download_indicio_testnet_genesis_file()
sys.argv[1] if len(sys.argv) > 1 else download_bcovrin_testnet_genesis_file()
)
asyncio.get_event_loop().run_until_complete(basic_test(genesis_path))
Loading