Skip to content

Commit bd23063

Browse files
authored
Add files header (#101)
2 parents a08a2ff + 81c0137 commit bd23063

File tree

164 files changed

+768
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+768
-0
lines changed

docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
# https://www.dsr-corporation.com
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
---
26
version: '3.6'
37

examples/migration/src/holder.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
use crate::{
26
ledger::{BesuLedger, IndyLedger, Ledgers},
37
wallet::{BesuWallet, IndyWallet},

examples/migration/src/issuer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
use crate::{
26
ledger::{BesuLedger, IndyLedger, Ledgers},
37
wallet::{BesuWallet, IndyWallet},

examples/migration/src/ledger.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
use crate::wallet::{BesuWallet, IndyWallet};
26
use indy_besu_vdr::{
37
credential_definition_registry::{

examples/migration/src/main.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
mod holder;
26
mod issuer;
37
mod ledger;

examples/migration/src/trustee.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
use crate::{
26
ledger::{BesuLedger, IndyLedger, Ledgers},
37
wallet::{BesuWallet, IndyWallet},

examples/migration/src/verifier.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
use crate::ledger::{BesuLedger, IndyLedger, Ledgers};
26
use indy_credx::types::{
37
CredentialDefinition, CredentialDefinitionId, Presentation, PresentationRequest, Schema,

examples/migration/src/wallet.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024 DSR Corporation, Denver, Colorado.
2+
// https://www.dsr-corporation.com
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
use aries_askar::kms::{KeyAlg, LocalKey};
26
use indy_besu_vdr::{Address, BasicSigner};
37

smart_contracts/contracts-ts/AccountControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { BigNumberish } from 'ethers'
28
import { BytesLike } from 'ethers/src.ts/utils'
39
import { Contract } from '../utils/contract'

smart_contracts/contracts-ts/CredentialDefinitionRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { concat, getBytes, keccak256, Signature, toUtf8Bytes, toUtf8String } from 'ethers'
28
import { CredentialDefinitionMetadataStruct } from '../typechain-types/contracts/anoncreds/CredentialDefinitionRegistry'
39
import { Contract } from '../utils/contract'

smart_contracts/contracts-ts/EthereumDidRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { encodeBytes32String, toUtf8Bytes } from 'ethers'
28
import { Contract } from '../utils/contract'
39

smart_contracts/contracts-ts/IndyDidRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { concat, getBytes, Signature, toUtf8Bytes, toUtf8String } from 'ethers'
28
import { DidMetadataStruct } from '../typechain-types/contracts/did/IndyDidRegistry'
39
import { Contract } from '../utils/contract'

smart_contracts/contracts-ts/LegacyMappingRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { concat, Signature, toUtf8Bytes } from 'ethers'
28
import { Contract } from '../utils/contract'
39

smart_contracts/contracts-ts/RoleControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { Account } from '../utils/account'
28
import { Contract } from '../utils/contract'
39

smart_contracts/contracts-ts/SchemaRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { concat, getBytes, keccak256, Signature, toUtf8Bytes, toUtf8String } from 'ethers'
28
import { SchemaMetadataStruct } from '../typechain-types/contracts/anoncreds/SchemaRegistry'
39
import { Contract } from '../utils/contract'

smart_contracts/contracts-ts/UniversalDidReolver.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { getBytes, toUtf8String } from 'ethers'
28
import { DidMetadataStruct } from '../typechain-types/contracts/did/IndyDidRegistry'
39
import { Contract } from '../utils'

smart_contracts/contracts-ts/UpgradeControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { Contract } from '../utils/contract'
28

39
export class UpgradeControl extends Contract {

smart_contracts/contracts-ts/ValidatorControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { Contract } from '../utils/contract'
28

39
export class ValidatorControl extends Contract {

smart_contracts/contracts-ts/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
export * from './AccountControl'
28
export * from './CredentialDefinitionRegistry'
39
export * from './IndyDidRegistry'

smart_contracts/demos/account-control.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { Actor } from './utils/actor'
28
import assert from 'assert'
39
import environment from '../environment'

smart_contracts/demos/flow-with-did-ethr.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import environment from '../environment'
28
import { Actor } from './utils/actor'
39
import { ROLES } from '../contracts-ts'

smart_contracts/demos/flow.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import environment from '../environment'
28
import { Actor } from './utils/actor'
39
import { ROLES } from '../contracts-ts'

smart_contracts/demos/role-control.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { ROLES } from '../contracts-ts'
28
import environment from '../environment'
39
import { Actor } from './utils/actor'

smart_contracts/demos/upgrade-control.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { Actor } from './utils/actor'
28
import environment from '../environment'
39
import { UpgradablePrototype } from './utils/contracts/UpgradablePrototype'

smart_contracts/demos/utils/actor.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { readBesuConfig } from '../../utils'
28
import {
39
RoleControl,

smart_contracts/demos/utils/contracts/SimpleContract.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { Contract } from '../../../utils'
28

39
export class SimpleContract extends Contract {

smart_contracts/demos/utils/contracts/UpgradablePrototype.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { BytesLike } from 'ethers'
28
import { Contract } from '../../../utils'
39

smart_contracts/demos/validator-control.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import environment from '../environment'
28
import { ROLES } from '../contracts-ts'
39
import { Account } from '../utils'

smart_contracts/environment.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import Web3 from 'web3'
28

39
export const environment = {

smart_contracts/hardhat.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import '@nomicfoundation/hardhat-toolbox'
28
import '@openzeppelin/hardhat-upgrades'
39
import 'hardhat-dependency-compiler'

smart_contracts/scripts/genesis/contractConfig.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
export interface ContractConfig {
28
name: string
39
address: string

smart_contracts/scripts/genesis/contracts/accountControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/credentialDefinitionRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/ethereumDidRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
export * from './accountControl'
28
export * from './credentialDefinitionRegistry'
39
export * from './indyDidRegistry'

smart_contracts/scripts/genesis/contracts/indyDidRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/legacyMappingRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/roleControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft, sha3, toHex } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/schemaRegistry.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/universalDidResolver.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

smart_contracts/scripts/genesis/contracts/upgradeControl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2024 DSR Corporation, Denver, Colorado.
3+
* https://www.dsr-corporation.com
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
import { padLeft } from 'web3-utils'
28
import { ContractConfig } from '../contractConfig'
39
import { buildProxySection, slots } from '../helpers'

0 commit comments

Comments
 (0)