Skip to content

Commit

Permalink
edit manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
scobru committed Dec 9, 2023
1 parent b618591 commit 6a36a78
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ Nost3 aims to extend the capabilities of the Nostr protocol by incorporating Web

- NIP-111 : https://github.com/nostr-protocol/nips/pull/268

## API Section

In addition to the existing features, Nostr3 introduces a convenient API functionality. This feature allows you to fetch an Ethereum Virtual Machine (EVM) address that corresponds to a specific Nostr public key (npub address).

You can easily access this API using the following endpoint:

<https://nostr3.vercel.app/api/npub123XYZ>

By querying this endpoint with a Nostr public key, you will receive a response containing two key pieces of information:

- **`evmAddress`**: This is the corresponding EVM address linked to the provided Nostr public key.
- **`pubKey`**: The original Nostr public key used in the query.

This API feature enhances the interoperability between Nostr protocol and EVM-based systems, making it easier for users to manage their identities and transactions across different blockchain platforms.

## Key Features

- **Keypair and EVM Address Generation:** Users can generate a Nostr keypair and an associated EVM address through their wallet.
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/MetaHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL ? `https://${process.env.NEXT
export const MetaHeader = ({
title = "Nostr3",
description = "Link Web3 with Nostr",
image = "nostr3.jpg",
image = "nostr3.png",
twitterCard = "summary_large_image",
children,
}: MetaHeaderProps) => {
Expand Down
3 changes: 3 additions & 0 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import Image from "next/image";
import type { NextPage } from "next";
import { MetaHeader } from "~~/components/MetaHeader";

const Home: NextPage = () => {
return (
<div className="flex items-center flex-col flex-grow pt-10 w-full sm:w-4/5 md:w-3/4 lg:w-3/6 mx-auto">
<MetaHeader />

<div className="w-full">
<Image className="mb-12 mx-auto" src="/assets/nostr3.png" width={400} height={400} alt="nostr3"></Image>
<div className="m-5 mx-auto w-5/6">
Expand Down
Binary file modified packages/nextjs/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/nextjs/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Scaffold-ETH 2 DApp",
"description": "A DApp built with Scaffold-ETH",
"iconPath": "logo.svg"
"name": "Nostr3",
"description": "Link Web3 with Nostr",
"iconPath": "thumbnail.png"
}
Binary file removed packages/nextjs/public/thumbnail.jpg
Binary file not shown.
File renamed without changes

0 comments on commit 6a36a78

Please sign in to comment.