Index of every page on this site: llms.txt
All skills
1shot-api avatar

/ows-branding-layer

@01cfb41
by 1Shot API1shot-api/skills1 stars
Run it yourself

1Shot API skills for coding agents

Use this Skill: https://skilld.dev/gh/1shot-api/skills/ows-branding-layer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespackages.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

OWS packages for a Branding Layer

Install

Aligned with examples/general-wallet/package.json:

npm install \
  @1shotapi/ows-types \
  @1shotapi/ows-wallet-utils \
  @1shotapi/ows-signer-utils \
  @1shotapi/ows-oid4 \
  viem

Notes:

  • viem is a peer of ows-signer-utils (EVM helpers); @solana/kit is an optional peer for toKitPartialSigner.
  • Solana chain ids in ows-types are CAIP-2 / Wallet Standard (solana:mainnet, solana:devnet, …). Host proxy.solana.* forwards wire methods; hosts opt in to discovery with proxy.solana.registerSolanaWallet() (Wallet Standard on the Host window — not auto-registered in OWSProxy.create).
  • postmate and zod are transitive via ows-wallet-utils — do not vendor Postmate; add a direct zod dep only if you author custom registerRpc schemas.
  • @1shotapi/ows-signer is plain JS sources. Prefer copy or static-serve into your app (no build step). Same origin as branding so rpId === location.hostname. Consuming it solely as an npm import of TS modules is not the reference pattern.
  • @1shotapi/ows-clear-signing is optional (ERC-7730 clear signing); viem is its peer. Descriptor types and ClearSigningLookupResultSchema live in ows-types.
  • @1shotapi/ows-provider is for host apps only — omit from a branding-only package unless the same origin also serves a demo host.

Until packages are on npm, depend via workspace, file:, or git:

# example — sibling clone
npm install ../open-wallet/packages/ows-types

Package roles

Package Import surface Branding uses it for
ows-types primitives, errors, credentials, EIP-1193 / EIP-7715 tables, CredentialCryptoUtils, PresentationUtils, ProofUtils Branded values, holder signer bridge, shared errors
ows-wallet-utils OWSWallet, RpcHelper (+ optional executionPermissions hooks), display child client, wallet.analytics.emit, wallet.providerEvents.emit, wallet.bitcoin.register / wallet.solana.register Postmate child, EIP-1193 / custom RPC registration, reads/chain, requestDisplay, Branding→Host analytics + EIP-1193 events; Solana Host wire (solana.*) when you register an IOpenWalletSolanaProvider

| ows-signer-utils | OWSSigner, SignHelper, showSignerCeremonyPanel, evm.*, solana.* (signMessage / signTransaction, optional toKitPartialSigner) | Nested signer iframe, consent→sign wiring, digests → signatures | | ows-oid4 | CredentialsHelper, issueCredentialAfterApproval, presentCredentialAfterApproval, HTTP OID4 clients | Thin accept/present adapter + branding approveAnd* ownership | | ows-clear-signing (optional) | ClearSigningUtils (calldataLookupKey, eip712LookupKey), ClearSigningFormatter, IClearSigningEnvironment | ERC-7730 clear-sign consent: registry lookup keys, descriptor verification, decoding + field formatting (see tasks §9) | | ows-signer | static files | Custody kernel under /signer/ |

There is no branding-core / registry package. App-local UI and wiring live in your repo (see examples/general-wallet/src/ows/).

Constructor arg order (easy to swap)

Helper Order
SignHelper (signer, wallet, options)
CredentialsHelper (wallet, options) — holder signer via createCredentialsHolderSigner(signer) in branding hooks

Serving the Signing Layer

Mirror examples/general-wallet:

  • Branding app may use Vite base: "/wallet/" for the UI.
  • Signer is served at /signer/ outside that base via middleware so WebAuthn + nest stay same-origin (vite.config.ts serveSignerPlugin). Production/dev CSP on /signer/ must include frame-ancestors 'self'.
  • HTML shell: signer-static/index.html; JS from package src/.
  • Prod: scripts/copy-signer.mjs → dist/signer/.
const signerUrl = new URL("/signer/", window.location.origin).href;

Credentials stack (optional)

Prefer CredentialsHelper + HTTP clients from @1shotapi/ows-oid4. Demo-only stores / trust / keys live under examples/shared in open-wallet (not published) — product apps supply their own ICredentialRepository, trust registry, and OID4 clients.

Holder signing: omit holderSigner to use the default OWS Ed25519 bridge (CredentialCryptoUtils.createOwsEd25519HolderSigner in ows-types), or pass your own IHolderSigner.

Host apps (not branding)

Hosts use @1shotapi/ows-provider (OWSProxy) only. Host-only options include allowLocalAccess (iframe permissions for Local Network Access when branding on a public origin fetches 127.0.0.1 / private LAN OID4 endpoints).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a framework for developers to build an Open Wallet Standard (OWS) Branding Layer. It relies on a specific iframe-based architecture to manage security and user experience. All external resources and packages are associated with the vendor '1Shot-API' or established libraries like viem, and no malicious patterns were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 01cfb41. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 weeks ago

README badge

README badge for 1shot-api/skills/ows-branding-layer