Coming from kernl
sigport is kernl's sign-in, taken out of kernl so other apps can use it. The adapters, the ranking and the error handling work the same way. sigport's tests include kernl's sign-in ordering scenarios and its wallet-signer checks, ported as they are. The default skin is neutral rather than kernl's.
To switch kernl over without changing anyone's keys or stored identities, pass kernl's own values:
ts
import { createSigport } from '@sigport/core';
import { all } from '@sigport/core/all';
const sigport = createSigport({
namespace: 'kernl', // reads kernl:accounts:v1 and kernl:active-account:v1
app: { name: 'kernl' },
adapters: all({
passkey: { salt: 'kernl passkey identity v1', info: 'kernl secp256k1 key v1', rpName: 'kernl' },
metamask: { snapId: import.meta.env.PUBLIC_KERNL_IDENTITY_SNAP },
remote: { pool: kernl.pool },
guest: { name: 'Just looking' },
}),
});| kernl | sigport |
|---|---|
PasskeyIdentity | PasskeyAccount (account type passkey, same saved form) |
SnapIdentity | SnapAccount (metamask-snap) |
OneKeyIdentity, OkxIdentity | OneKeyAccount (onekey), OkxAccount (okx) |
createThrowawayIdentity | createThrowawayAccount (throwaway) |
detectSignIn + planSignIn | each adapter's detect + planSignIn |
method create / look | adapter local / guest (kinds create / look) |
The account type strings are unchanged, so saved accounts restore as they are.