baking-bad / beacon-dotnet-sdk

Beacon .NET SDK for Tezos wallet developers to seamlessly connect to multiple dApps
https://www.nuget.org/packages/Beacon.Sdk
MIT License
12 stars 5 forks source link

Research PostMessageTransport #2

Closed iviich4eL closed 3 years ago

iviich4eL commented 3 years ago

PostMessage

  1. https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
  2. https://github.com/airgap-it/beacon-sdk/blob/master/src/transports/clients/PostMessageClient.ts#L79
iviich4eL commented 3 years ago

Blazor

  1. https://docs.microsoft.com/en-us/aspnet/core/blazor/call-javascript-from-dotnet?view=aspnetcore-5.0
  2. https://github.com/RemiBou/BrowserInterop
  3. https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/blazor/common/samples/
iviich4eL commented 3 years ago

Interop sample

  1. https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/blazor/common/samples/
iviich4eL commented 3 years ago

Possible solution

Write JS interop for PostMessageTransport.