Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try build #553

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion ROTATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ experience. Therefore we came up with the a new idea to initiate this namespace:
coin
{ 'guard : (read-keyset 'ns-keyset)
, 'credential-id : "credential-id"
, 'hostname : "https://spirekey.kadena.io"
, 'hostname : "https://chainweaver.kadena.io"
, 'device-type : "device-type"
, 'color : "#hexcolor"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/KIP-0030/SPECS.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const someHandler = async () => {

The `initSpireKey` function is optional and can be used to configure the SDK to
target a different wallet using a `config` object. When omitted the SDK will
will use `https://spirekey.kadena.io`.
will use `https://chainweaver.kadena.io`.

If you do want to use a different host, you can provide it via the config:

Expand Down
10 changes: 5 additions & 5 deletions docs/KIP-0030/guides/create-account-and-connect-to-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ Your dApp will connect to a Kadena SpireKey wallet dApp that can be hosted
anywhere. You could run it locally as described in the official Kadena Spirekey
[Github repository](https://github.com/kadena-community/webauthn-wallet/), serve
it from your own domain, or use the Kadena SpireKey wallet hosted by Kadena on
[spirekey.kadena.io](spirekey.kadena.io). This guide assumes that you will be
using the latter approach.
[chainweaver.kadena.io](chainweaver.kadena.io). This guide assumes that you will
be using the latter approach.

## Link to the Kadena SpireKey wallet

On any page of your dApp, create a simple link to the `/connect` page of the
Kadena SpireKey wallet dApp.

```
https://spirekey.kadena.io/connect?returnUrl=http://localhost:3000&networkId=testnet04
https://chainweaver.kadena.io/connect?returnUrl=http://localhost:3000&networkId=testnet04
```

You need to pass the URL of your dApp as a URL encoded query parameter
Expand Down Expand Up @@ -86,7 +86,7 @@ account information from the user. The value for this parameter must be URL
encoded. See the example below.

```
https://spirekey.kadena.io/connect?returnUrl=http://localhost:3000&networkId=development&reason=Your%20reason.
https://chainweaver.kadena.io/connect?returnUrl=http://localhost:3000&networkId=development&reason=Your%20reason.
```

### Use the account data
Expand Down Expand Up @@ -164,7 +164,7 @@ of pending transactions by decoding the `pendingTxIds` query parameter.
With the `optimistic=true` parameter, the connect url would look like this:

```
https://spirekey.kadena.io/connect?returnUrl=http://localhost:3000&networkId=development&reason=Your%20reason&optimistic=true
https://chainweaver.kadena.io/connect?returnUrl=http://localhost:3000&networkId=development&reason=Your%20reason&optimistic=true
```

With this connect url, the user will be redirected to the following url after
Expand Down
39 changes: 20 additions & 19 deletions docs/KIP-0030/guides/create-account.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# **Create a Kadena Spirekey account**

You can create a Kadena SpireKey account on
[spirekey.kadena.io](https://spirekey.kadena.io). If you have not created a
Kadena SpireKey account before, you will be redirected to the
[Welcome page](https://spirekey.kadena.io). On the Welcome page you can choose
to either recover an account, which is explained in another guide, or register a
new account. Click the `Register` button to enter the registration flow and
create a new Kadena SpireKey account.
[chainweaver.kadena.io](https://chainweaver.kadena.io). If you have not created
a Kadena SpireKey account before, you will be redirected to the
[Welcome page](https://chainweaver.kadena.io). On the Welcome page you can
choose to either recover an account, which is explained in another guide, or
register a new account. Click the `Register` button to enter the registration
flow and create a new Kadena SpireKey account.

## Registration flow

Expand Down Expand Up @@ -46,8 +46,8 @@ In the future, it will be possible to configure custom networks as well.
#### Note for wallet developers

You may have noticed that the `Network` step is missing on
[spirekey.kadena.io](https://spirekey.kadena.io/register). That is because the
deployment of this wallet dApp is configured with the environment variable
[chainweaver.kadena.io](https://chainweaver.kadena.io/register). That is because
the deployment of this wallet dApp is configured with the environment variable
`WALLET_NETWORK_ID` set to `testnet04`. This forces users to create an account
on the respective network. Therefore the `Network` step of the registration flow
does not need to be presented to the user. The preselected network (`Testnet`)
Expand Down Expand Up @@ -99,14 +99,15 @@ the blockchain and definitively create your new account.
## Registration completed

After completing the registration flow you are redirected back to the main page
of [Kadena SpireKey](https://spirekey.kadena.io). Instead of the welcome screen
that was presented before you created your first account, you will now see a
card representing your newly created account. While the registration transaction
is being mined, the name of your account - the `c:account` - will be presented
in an animated state. Once the registration transaction has been mined, the
animation will stop and the `c:account` will be displayed. Part of the account
name will be masked for display purposes. Press the copy button to the right of
the account name and paste it anywhere to see the full account name. At this
point you have a fully functional Kadena SpireKey account guarded by a WebAuthn
credentials. You can use this account to connect your account to dApps that
integrate with Kadena SpireKey and sign transactions initiated by those dApps.
of [Kadena SpireKey](https://chainweaver.kadena.io). Instead of the welcome
screen that was presented before you created your first account, you will now
see a card representing your newly created account. While the registration
transaction is being mined, the name of your account - the `c:account` - will be
presented in an animated state. Once the registration transaction has been
mined, the animation will stop and the `c:account` will be displayed. Part of
the account name will be masked for display purposes. Press the copy button to
the right of the account name and paste it anywhere to see the full account
name. At this point you have a fully functional Kadena SpireKey account guarded
by a WebAuthn credentials. You can use this account to connect your account to
dApps that integrate with Kadena SpireKey and sign transactions initiated by
those dApps.
29 changes: 15 additions & 14 deletions docs/KIP-0030/guides/recover-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ layout: full
# Recover a Kadena Spirekey account

After you register a device for a Kadena SpireKey account, the account details
are stored on the Kadena blockchain and in the `Local storage` of the
browser you used to register the account. You can view this information using
the Developer Tools for the browser by selecting **Application**, then expanding
are stored on the Kadena blockchain and in the `Local storage` of the browser
you used to register the account. You can view this information using the
Developer Tools for the browser by selecting **Application**, then expanding
**Storage**. If you clear local storage—for example, by selecting **Clear
browsing data**—or try to use a different browser to access your Kadena SpireKey
account, the [Kadena SpireKey wallet](https://spirekey.kadena.io) won't be able
to identify the account that belongs to you or recognize you as a registered
user. However, you can recover your account information through the passkey
stored on any device you created your account with or added to your account. For example, if you used a smart
phone to register a Kadena SpireKey account, you can use the passkey stored on
that phone to recover your account information.
account, the [Kadena SpireKey wallet](https://chainweaver.kadena.io) won't be
able to identify the account that belongs to you or recognize you as a
registered user. However, you can recover your account information through the
passkey stored on any device you created your account with or added to your
account. For example, if you used a smart phone to register a Kadena SpireKey
account, you can use the passkey stored on that phone to recover your account
information.

## Identify the passkey for an account

Expand All @@ -46,13 +47,13 @@ in a secure enclave on the phone.

For demonstration purposes, assume that you registered for a Kadena SpireKey
account from a browser running on your local computer. If that's the case, you
can open [spirekey.kadena.io](https://spirekey.kadena.io) in the browser and see
that your account information is displayed by default from the information in
local storage.
can open [chainweaver.kadena.io](https://chainweaver.kadena.io) in the browser
and see that your account information is displayed by default from the
information in local storage.

To clear local storage:

1. Open [Kadena SpireKey](https://spirekey.kadena.io).
1. Open [Kadena SpireKey](https://chainweaver.kadena.io).
2. Open the Developer Tools.
3. Open the Console and type the following command:

Expand All @@ -68,7 +69,7 @@ To clear local storage:
To recover account information:

1. Click **Recover** or open
[spirekey.kadena.io/recover](https://spirekey.kadena.io/recover).
[chainweaver.kadena.io/recover](https://chainweaver.kadena.io/recover).
2. Click in the Passkey fingerprint section.
3. Select the passkey for the account you want to recover.

Expand Down
4 changes: 2 additions & 2 deletions docs/KIP-0030/guides/send-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ navigate users back to your dApp. This information will be passed via url
parameters.

You will use the same host that you used to connect the account and navigate to
the sign page: https://spirekey.kadena.io/sign
the sign page: https://chainweaver.kadena.io/sign

In the following table you can see what parameters are currently accepted by
SpireKey.
Expand All @@ -152,7 +152,7 @@ const encodedTx = btoa(JSON.stringify(tx));
const encodedReturnUrl = encodeURIComponent(RETURN_URL);

// The url you need to navigate to sign and return the transaction
const sendTransactionUrl = `https://spirekey.kadena.io/sign#transaction=${encodedTx}&returnUrl=${encodedReturnUrl}`;
const sendTransactionUrl = `https://chainweaver.kadena.io/sign#transaction=${encodedTx}&returnUrl=${encodedReturnUrl}`;
```

Once you construct the route to the wallet with the required parameters, you can
Expand Down
4 changes: 2 additions & 2 deletions examples/embedded-nextjs/src/steps/Connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ConnectStep = ({
}) => {
const [wallet, setWallet] = useLocalState(
'wallet',
'https://spirekey.kadena.io/',
'https://chainweaver.kadena.io/',
);
const [networkId, setNetworkId] = useLocalState('networkId', 'testnet04');
const [chainId, setChainId] = useLocalState('chainId', '14');
Expand Down Expand Up @@ -91,7 +91,7 @@ export const ConnectStep = ({
onSelectionChange={(w) => setWallet(w as string)}
selectedKey={wallet}
>
<SelectItem key="https://spirekey.kadena.io/">
<SelectItem key="https://chainweaver.kadena.io/">
SpireKey
</SelectItem>
<SelectItem key="http://localhost:1337/">Local</SelectItem>
Expand Down
2 changes: 1 addition & 1 deletion sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const someHandler = async () => {

The `initSpireKey` function is optional and can be used to configure the SDK to
target a different wallet using a `config` object. When omitted the SDK will
will use `https://spirekey.kadena.io`.
will use `https://chainweaver.kadena.io`.

If you do want to use a different host, you can provide it via the config:

Expand Down
2 changes: 1 addition & 1 deletion spirekey/pact/spirekey.repl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
coin
{ 'guard : (read-keyset 'ns-keyset)
, 'credential-id : "credential-id"
, 'domain : "https://spirekey.kadena.io"
, 'domain : "https://chainweaver.kadena.io"
, 'device-type : "device-type"
, 'color : "#hexcolor"
}
Expand Down