Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 763e641

Browse files
authored
KeyPair: add fromBytes, toEd25519PrivateKey (#78)
- fromBytes allows to pass any seed you want - constructor takes PeerId (previously was empty and maybe private) - toEd25519PrivateKey to complete the lifecycle.
1 parent 608506d commit 763e641

File tree

5 files changed

+90
-8379
lines changed

5 files changed

+90
-8379
lines changed

.github/workflows/publish_branch.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v2
1919

20-
- name: Extract branch name
21-
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
22-
20+
- name: Get branch name
21+
run: |
22+
BRANCH=${GITHUB_REF#refs/*/}
23+
SANITIZED=$(echo "$BRANCH" | sed -e 's/[^a-zA-Z0-9-]/-/g')
24+
echo "BRANCH_NAME=$SANITIZED" >> $GITHUB_ENV
2325
### Set version
2426
- name: Set version
2527
run: npm version prerelease --no-git-tag-version --preid ${{ env.BRANCH_NAME }}-${{ github.run_number }}

0 commit comments

Comments
 (0)