From ecdeed8c968a4ff6a3aec1f76e28235cf2826bcf Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Sat, 13 Feb 2021 14:49:45 +0800 Subject: [PATCH 1/2] Neo Address Resolution --- nns-txt-address.mediawiki | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 nns-txt-address.mediawiki diff --git a/nns-txt-address.mediawiki b/nns-txt-address.mediawiki new file mode 100644 index 00000000..09f24e2f --- /dev/null +++ b/nns-txt-address.mediawiki @@ -0,0 +1,47 @@ +
+  NEP: 
+  Title: Neo Address Resolution
+  Author: Erik Zhang 
+  Type: Standard
+  Status: Draft
+  Created: 2021-02-13
+
+ +==Abstract== + +This NEP describes a standard for storing Neo addresses in TXT records. +The wallet and client should use the method described in this NEP to store and resolve the TXT record of the domain name, so that users can use the NNS domain name to transfer assets or use dapps. + +==Motivation== + +NNS currently provides regular DNS service to allow users to add A, CNAME, TXT and AAAA records for domain names. +However, we do not provide direct support for Neo addresses in NNS. +We need a way to map domain names in NNS to Neo addresses to support complex application scenarios. + +==Specification== + +[https://tools.ietf.org/html/rfc1464 RFC 1464] describes the general syntax of a TXT attribute: + +
+"="
+
+ +We use address as the attribute name of the Neo address: + +
+"address="
+
+ +The following TXT record map the domain name to the Neo address NUVPACMnKFhpuHjsRjhUvXz1XhqfGZYVtY: + +
+"address=NUVPACMnKFhpuHjsRjhUvXz1XhqfGZYVtY"
+
+ +==Rationale== + +A dapp can add a Neo address to its domain name to allow users to send assets, or allow the front end to use the domain name to call the contract. + +The user can set a domain name for his address, so that his transaction party is difficult to be deceived by a fake address, and it can also reduce the chance of wrong transfer. + +==Implementation== From e88a4781a986b5dfa44001cb6603479912dc5122 Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Fri, 5 Mar 2021 13:57:55 +0800 Subject: [PATCH 2/2] Accepted --- nns-txt-address.mediawiki => nep-18.mediawiki | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) rename nns-txt-address.mediawiki => nep-18.mediawiki (94%) diff --git a/nns-txt-address.mediawiki b/nep-18.mediawiki similarity index 94% rename from nns-txt-address.mediawiki rename to nep-18.mediawiki index 09f24e2f..fb094bde 100644 --- a/nns-txt-address.mediawiki +++ b/nep-18.mediawiki @@ -1,47 +1,47 @@ -
-  NEP: 
-  Title: Neo Address Resolution
-  Author: Erik Zhang 
-  Type: Standard
-  Status: Draft
-  Created: 2021-02-13
-
- -==Abstract== - -This NEP describes a standard for storing Neo addresses in TXT records. -The wallet and client should use the method described in this NEP to store and resolve the TXT record of the domain name, so that users can use the NNS domain name to transfer assets or use dapps. - -==Motivation== - -NNS currently provides regular DNS service to allow users to add A, CNAME, TXT and AAAA records for domain names. -However, we do not provide direct support for Neo addresses in NNS. -We need a way to map domain names in NNS to Neo addresses to support complex application scenarios. - -==Specification== - -[https://tools.ietf.org/html/rfc1464 RFC 1464] describes the general syntax of a TXT attribute: - -
-"="
-
- -We use address as the attribute name of the Neo address: - -
-"address="
-
- -The following TXT record map the domain name to the Neo address NUVPACMnKFhpuHjsRjhUvXz1XhqfGZYVtY: - -
-"address=NUVPACMnKFhpuHjsRjhUvXz1XhqfGZYVtY"
-
- -==Rationale== - -A dapp can add a Neo address to its domain name to allow users to send assets, or allow the front end to use the domain name to call the contract. - -The user can set a domain name for his address, so that his transaction party is difficult to be deceived by a fake address, and it can also reduce the chance of wrong transfer. - -==Implementation== +
+  NEP: 18
+  Title: Neo Address Resolution
+  Author: Erik Zhang 
+  Type: Standard
+  Status: Accepted
+  Created: 2021-02-13
+
+ +==Abstract== + +This NEP describes a standard for storing Neo addresses in TXT records. +The wallet and client should use the method described in this NEP to store and resolve the TXT record of the domain name, so that users can use the NNS domain name to transfer assets or use dapps. + +==Motivation== + +NNS currently provides regular DNS service to allow users to add A, CNAME, TXT and AAAA records for domain names. +However, we do not provide direct support for Neo addresses in NNS. +We need a way to map domain names in NNS to Neo addresses to support complex application scenarios. + +==Specification== + +[https://tools.ietf.org/html/rfc1464 RFC 1464] describes the general syntax of a TXT attribute: + +
+"="
+
+ +We use address as the attribute name of the Neo address: + +
+"address="
+
+ +The following TXT record map the domain name to the Neo address NUVPACMnKFhpuHjsRjhUvXz1XhqfGZYVtY: + +
+"address=NUVPACMnKFhpuHjsRjhUvXz1XhqfGZYVtY"
+
+ +==Rationale== + +A dapp can add a Neo address to its domain name to allow users to send assets, or allow the front end to use the domain name to call the contract. + +The user can set a domain name for his address, so that his transaction party is difficult to be deceived by a fake address, and it can also reduce the chance of wrong transfer. + +==Implementation==