@did-btcr2/common 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -57,22 +57,22 @@ export type MethodName = string;
57
57
  export type MethodSpecificId = string;
58
58
  export type DecentralizedIdentifierExplicit = `${DID}:${MethodName}:${MethodSpecificId}`;
59
59
  export type DecentralizedIdentifier = string;
60
- export type Btc1MethodName = 'btcr2';
61
- export type Btc1DeterministicPrefix = 'k';
62
- export type Btc1ExternalPrefix = 'x';
63
- export type Btc1Prefix = `${Btc1DeterministicPrefix | Btc1ExternalPrefix}1`;
60
+ export type Btcr2MethodName = 'btcr2';
61
+ export type Btcr2DeterministicPrefix = 'k';
62
+ export type Btcr2ExternalPrefix = 'x';
63
+ export type Btcr2Prefix = `${Btcr2DeterministicPrefix | Btcr2ExternalPrefix}1`;
64
64
  export type Bech32Id = string;
65
- export type Btc1Id = `${Btc1Prefix}${Bech32Id}`
66
- export type Btc1IdentifierExplicit = `${DID}:${Btc1MethodName}:${Btc1Id}`;
67
- export type Btc1Identifier = string;
68
- export type Controller = Btc1Identifier;
65
+ export type Btcr2Id = `${Btcr2Prefix}${Bech32Id}`
66
+ export type Btcr2IdentifierExplicit = `${DID}:${Btcr2MethodName}:${Btcr2Id}`;
67
+ export type Btcr2Identifier = string;
68
+ export type Controller = Btcr2Identifier;
69
69
  export type Id = 'initialKey';
70
70
  export type FullId = `${Controller}#${Id}`;
71
- export enum Btc1IdentifierTypes {
71
+ export enum Btcr2IdentifierTypes {
72
72
  KEY = 'KEY',
73
73
  EXTERNAL = 'EXTERNAL'
74
74
  }
75
- export enum Btc1IdentifierHrp {
75
+ export enum Btcr2IdentifierHrp {
76
76
  k = 'k',
77
77
  x = 'x'
78
78
  }