{"id":28380686,"url":"https://github.com/0xsequence/google-kms-signer","last_synced_at":"2026-03-05T09:03:20.585Z","repository":{"id":233122583,"uuid":"738831839","full_name":"0xsequence/google-kms-signer","owner":"0xsequence","description":"ethers.js and sequence.js-compatible signer using Google Cloud KMS keys","archived":false,"fork":false,"pushed_at":"2026-02-13T16:27:51.000Z","size":236,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-02-14T00:40:06.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xsequence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-04T06:32:13.000Z","updated_at":"2025-06-26T17:59:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"03fde439-f7ce-43a1-a05f-a66b448b8609","html_url":"https://github.com/0xsequence/google-kms-signer","commit_stats":null,"previous_names":["0xsequence/google-kms-signer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/0xsequence/google-kms-signer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsequence%2Fgoogle-kms-signer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsequence%2Fgoogle-kms-signer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsequence%2Fgoogle-kms-signer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsequence%2Fgoogle-kms-signer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xsequence","download_url":"https://codeload.github.com/0xsequence/google-kms-signer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsequence%2Fgoogle-kms-signer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T03:09:03.690Z","updated_at":"2026-03-05T09:03:19.240Z","avatar_url":"https://github.com/0xsequence.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-kms-signer\n\n[GoogleKmsSigner](https://github.com/0xsequence/google-kms-signer) is an [ethers.js](https://ethers.org)- and [sequence.js](https://github.com/0xsequence/sequence.js)-compatible signer using [Google Cloud Key Management Service](https://cloud.google.com/security/products/security-key-management) keys\n\n## prerequisites\n\n### create google cloud kms key\n\nhttps://console.cloud.google.com/security/kms/keyrings\n\n1. create project or use existing one\n2. create key ring or use existing one\n3. create key\n  - protection level: hsm\n  - key material: hsm-generated\n  - purpose: asymmetric sign\n  - algorithm: elliptic curve secp256k1 - sha256 digest\n\n### set up application default credentials\n\nhttps://cloud.google.com/kms/docs/reference/libraries#authentication\n\n1. install [gcloud cli](https://cloud.google.com/sdk/docs/install)\n2. `gcloud auth application-default login`\n3. authenticate\n\n## installation\n\nthese instructions assume [pnpm](https://pnpm.io), please refer to docs if you use something else\n\n```sh\npnpm add @0xsequence/google-kms-signer\n```\n\n## usage\n\n### integration\n\ncreate a signer:\n\n```ts\nimport { GoogleKmsSigner } from '@0xsequence/google-kms-signer'\n\nconst signer = new GoogleKmsSigner({\n  project: 'my-project',\n  location: 'my-location',\n  keyRing: 'my-key-ring',\n  cryptoKey: 'my-crypto-key',\n  cryptoKeyVersion: 'my-crypto-key-version'\n})\n```\n\nget your signer's address:\n\n```ts\nconst address = await signer.getAddress()\nconsole.log(address)\n```\n\nsign a message:\n\n```ts\nconst message = 'hello world'\nconst signature = await signer.signMessage(message)\n\nconsole.log(signature)\nconsole.log(`${ethers.utils.verifyMessage(message, signature)} = ${address}`)\n```\n\nsend a transaction:\n\n```ts\nconst provider = new ethers.providers.JsonRpcProvider('https://my-json-rpc-provider.com')\nconst connectedSigner = signer.connect(provider)\n\nconst response = await connectedSigner.sendTransaction({\n  to: 'destination address',\n  value: 123\n})\n\nconst receipt = await response.wait()\nconsole.log(receipt)\n```\n\nsign for a sequence wallet:\n\n```ts\nimport { Session } from '@0xsequence/auth'\nimport { isValidMessageSignature } from '@0xsequence/provider'\n\nconst session = await Session.singleSigner({\n  signer,\n  projectAccessKey: 'my-project-access-key'\n})\n\nconst message = ethers.utils.toUtf8Bytes('hello world')\nconst signature = await session.account.signMessage(message, chainId, 'eip6492')\n\nconsole.log(isValidMessageSignature(session.account.address, message, signature, provider))\n```\n\n### running tests\n\n```sh\ncp .env.sample .env\n```\n\nedit the .env file, then:\n\n```sh\npnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsequence%2Fgoogle-kms-signer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xsequence%2Fgoogle-kms-signer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsequence%2Fgoogle-kms-signer/lists"}