Skip to content

Commit

Permalink
Merge pull request #7 from radixdlt/release/rcnet-v3.1
Browse files Browse the repository at this point in the history
Release/rcnet v3.1
  • Loading branch information
xstelea authored Sep 7, 2023
2 parents 65d928e + da7a04a commit e03decf
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- develop
- release/rcnet-v3
- release/*
workflow_dispatch:

jobs:
Expand Down
5 changes: 5 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module.exports = {
channel: 'rcnet-v3',
prerelease: 'rcnet-v3',
},
{
name: 'release/rcnet-v3.1',
channel: 'rcnet-v3.1',
prerelease: 'rcnet-v3.1',
},
],
plugins: [
[
Expand Down
146 changes: 8 additions & 138 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
"vite-tsconfig-paths": "^4.2.0"
},
"dependencies": {
"@radixdlt/radix-dapp-toolkit": "0.6.1",
"@radixdlt/radix-engine-toolkit": "0.3.0",
"@radixdlt/babylon-gateway-api-sdk": "^1.0.0-rc.3.1.1",
"@radixdlt/radix-engine-toolkit": "0.4.0",
"elliptic": "^6.5.4",
"neverthrow": "^6.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/helpers/derive-address-from-public-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SignedChallenge } from '@radixdlt/radix-dapp-toolkit'
import type { SignedChallenge } from '../types'
import { PublicKey, RadixEngineToolkit } from '@radixdlt/radix-engine-toolkit'
import { ResultAsync, errAsync } from 'neverthrow'
import { typedError } from './typed-error'
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/helpers/verify-proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Result } from 'neverthrow'
import { err, ok } from 'neverthrow'
import { curve25519 } from '../crypto/curve25519'
import { secp256k1 } from '../crypto/secp256k1'
import type { SignedChallenge } from '@radixdlt/radix-dapp-toolkit'
import type { SignedChallenge } from '../types'

const supportedCurves = new Set(['curve25519', 'secp256k1'])

Expand Down
2 changes: 1 addition & 1 deletion typescript/src/rola.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NetworkId } from '@radixdlt/radix-engine-toolkit'
import { Rola } from './rola'
import type { SignedChallenge } from '@radixdlt/radix-dapp-toolkit'
import type { SignedChallenge } from './types'

describe('Rola', () => {
const { verifySignedChallenge } = Rola({
Expand Down
9 changes: 3 additions & 6 deletions typescript/src/rola.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ import { verifyProofFactory } from './helpers/verify-proof'
import { deriveVirtualAddress } from './helpers/derive-address-from-public-key'
import { createPublicKeyHash } from './helpers/create-public-key-hash'
import { GatewayService } from './gateway'
import type {
GatewayApiClient,
SignedChallenge,
} from '@radixdlt/radix-dapp-toolkit'
import type { GatewayApiClient } from '@radixdlt/babylon-gateway-api-sdk'
import type { SignedChallenge } from './types'

export { NetworkId } from '@radixdlt/radix-engine-toolkit'

export type { SignedChallenge } from '@radixdlt/radix-dapp-toolkit'
export type RolaError = { reason: string; jsError?: Error }
export type * from './types'

export type VerifyOwnerKeyOnLedgerFn = (
address: string,
Expand Down
10 changes: 10 additions & 0 deletions typescript/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export type SignedChallenge = {
address: string
type: 'persona' | 'account'
challenge: string
proof: {
publicKey: string
signature: string
curve: 'curve25519' | 'secp256k1'
}
}

0 comments on commit e03decf

Please sign in to comment.