►
Description
This demonstration was presented by the author(s) after just 1 week of working with the NEAR platform as part of the NEAR Certified Developer program.
You can find the source code to this demo here:
https://github.com/Learn-NEAR/NCD-02--redirector-extension
---
Follow the latest from NEAR Protocol on:
Website: https://near.org/
Discord: https://near.chat/
Blog: https://near.org/blog/
Twitter: https://twitter.com/NEARProtocol
GitHub: https://github.com/near https://github.com/nearprotocol
#Blockchain #FutureIsNEAR #NEAR #nearprotocol
A
So
alex
alexander
and
dimitri,
alex
and
dimitri,
if
you
could,
please
share
your
screen
present
your
demo
I'll
start.
The
timer
you've
got
five
to
ten
minutes.
B
Hi
everyone,
hello
jima:
where
are
you.
C
I
I
thought
it's
not
good
to
have
too
much
videos
hi,
because
the
connection-
probably
not
so
great
for
too
many
videos,
connection
yeah.
B
Okay,
jimmy,
can
you
explain
the
idea
of
the
project.
C
Okay,
okay,
okay,
okay,
the
idea
is
there
are.
C
C
It
should
be
some
kind
of
community
service
where
the
people
could
store
redirects,
which
website
if
a
website
is
blocked.
You
can
just
point
out
that
the
other
website,
other
the
user,
should
be
redirected
to
another
website
and
it
should
be
decentralized
service.
So
just
an
idea.
C
B
Great,
for
example,
imagine
that
my
twitter
page
is
blocked
banned
and
I
want
to
create
a
redirection
to
another
web
page,
for
example,
to
my
near
world.
B
A
C
Yes,
I
can
show
the
code
and
test
just
a
moment
so
share
the
screen.
Now
I
can
enter
the
screen
while
another
sharing.
A
C
Yeah
I
have,
unfortunately,
one
uncommitted
commit
unpatched
commit
because
of
some
merge
complete.
It
doesn't
matter
I'll,
show
you
the
state
of
the
art
currently,
so
essentially,
it's
a
very
easy.
Currently,
we
have
a
contract
that
had
a
new
redirection
which
is
contains
of
key
other.
This
is
the
hash
value
we
we
took
cash
because
otherwise
we
just
to
pre
preserve
her
privacy.
C
Somehow
target
is
a
targeted
oral
and
message
in
the
message
essentially,
and
we
it
is
like
guest
book
essentially,
and
we
just
try
to
get
if
there
any
redirection
array,
because
they
could
do
more
than
one
redirects.
If
there
is
one,
then.
C
We
create
a
redirection
for
and
just
patch
the
key
or
the
set
it
so
just
and
then
we
can
get
the
direct
array
of
redirects
and
we
can
clear
the
all
redirects
and
the
model
is
essentially
very
simple
and
it's
one
persistent
map
and
consistent,
vector,
persistent
vector
of
all
keys,
because
the
map,
I
suppose,
like
an
ethereum,
is
not
a
durable.
I
can't
iterate
over
the
map.
If
I
want
to
clean
it,
so
I
have
to
store
all
the
keys
separately.
A
I
just
want
to
note
that
I
I
see
that
you're
using
the
same
prefix
on
lines,
eight
and
nine
for
these
two
different
wrappers.
I
just
wanted
to
note
that
I
see
that
you're
using
the
same
prefix
m
m
double
m
for
the
eight
and
nine.
C
Okay,
okay,
is
it,
is
it
a
bargain?
I
thought
it's
some
kind
of
name
space
for
the
project.
A
It's
a
name
space
for
the
the
keys
in
storage
related
to
this
abstraction,
so
that
you
can
read
and
write
from
storage
for
the
persistent
map,
serializing
and
deserializing.
According
to
the
the
members
of
the
of
that.
C
C
A
If
you
wanted
to
you,
know
v1
v2,
something
like
that
for
for
these,
but
but
in
the
end,
all
that's
happening
underneath
the
hood,
if
you
you
know,
control
click
on
these
abstractions
persistent
map
and
persistent
vector
and
look
at
the
source
code
behind
them,
you'll
see
they're
just
reading
and
writing
to
storage,
which
is
key
value
pair,
and
this
prefix
is
name
spacing
the
key
name
for
you.
So
there
are
some
keys
which
are
starting
with
mm.
These
will
be
the
persistent
map
keys
and
then
the
m
single
m.
D
A
C
C
A
C
C
Wrap
the
project
or
end
the
project;
no,
no!
No!
It's!
We
have
demonstrated
everything
I
suppose
yeah
okay,.
A
D
Suppose
I
have,
I
have
one
one
comment
and
correct
me
if,
if
I'm
wrong,
like,
I
like
this
idea
with
community-driven
redirects
database
on
blockchain
and
the
the
my
question
is
like
like
I've
got,
that
feeling
like
like
this
is
pretty
like
major
thing
with
block
twitter
accounts
and
stuff
like
that
right
and
it
does
it
look
to
you
guys
as
well
like,
as
as
I
can
see
that,
like
like
a
pretty
simple
contract
like
written
like
an
assembly,
script
can
be
a
good
use
for
this,
like
huge
problem
like
like
to
me,
looks
like
like
this
is
the
like:
the
simplest
contract,
probably
right
ever
right,
and
but
but
it
does
its
work.
D
D
But
but
but
but
it
does
the
jobs
like
it's
like
with
a
simple
contract.
You
can.
C
D
A
C
On
then,
we
need
to
make
much
more
work
on
contract
in
order
to
be
sure
that
there's
no
spam
redirect
spam.
No
for
sure,
but
for
this
case
we
would
like
to
test.
How
can
we
create
or
integrate
a
neo
wallet
into
into
our
plugin,
and
we
would
like
to
see
if
it
everything
work
to
to
get
the
data
on
to
store
the
data
from
the
extension,
because
this
is
our
main
topic.
We
essentially
we
have
here
wallets
here.
C
We
could
theoretically
connect
that
we
can
connect
to
metamask
and
wallet,
and
we
would
like
to
see
here
near
to
connect
to,
and
this
is
what
we
have
worked
on.
Essentially
in
this
time
we
have
checked
how
we
can
connect
near
to
extension,.
D
Yeah
yeah,
okay,
okay,
so
my
actually
idea
was
like
yeah.
I
don't
know
much
about
the
doubtless
thing
and
stuff
right,
but
I
can
see
a
pure,
very
simple,
easy
to
understand.
Use
case
like
for
this
particular
demons
that
you
just
showed
like,
like
everyone
can
get
it
at.
Everyone
knows
like
man
like
this
is
huge
like
I
don't
like
it
like,
like
mr
trump
would
like
it
too
right
like
I
was
blocked
several
times
on
twitter
like
for
no
reason
right
like,
and
this
is
a
pain
in
the
ass
right.
D
So
if
you
have,
if
you
have
any
any
capabilities-
and
we
will
be
gladly
to
help
you
to
get
this
particular
project
to
put
it
on
like
on
main
net
on
your
like,
as
as
you
know,
the
pilot
thing
yeah.
C
Yeah
yeah,
it
would
be
great
to
finalize
it.
There
are
two
challenges
there,
the
first
challenge.
We
need
to
make
sure
that
a
particular
resource
is
really
owned
by
somebody
who
claims
it.
So
in
case
of
twitter,
we
we
can
post.
We
can
ask
somebody
to
post
a
tweet
and
pass
it
and
be
sure
that
it's
really
owned
and
connect
essentially
establish
connection
between.
A
C
And
near
account
and
twitter
account,
so
we
need
some
kind
of
oracles
there
for
this
and
then,
if
something
changes,
if
account
get
hijacked
or
someone
or
something
like
that,
we
need
some
kind
of
oracle
to
determine
it.
Some
kind
of
clairos
community
or
something
like
that.
So
it's
not
so
easy,
but
it's
doable.
A
Yeah
cool.
Thank
you.
That's
great
yeah,
thanks!
So
much
for
the
demo,
any
other
questions,
any
other
comments.