Comments (4)
Hello everyone,
I propose something like this to build a method from an account:
store.GetDepositAddresses(account.ID())
for key, value := range accAddr {
addr, _ := address.GenerateAddress(seed, key, value.SecurityLevel, true)
}
However the checksum seem different from the one generated with account.AllocateDepositAddress(conds) that is using acc.setts.AddrGen(acc.lastKeyIndex, acc.setts.SecurityLevel, true).
Which is weird as the parameters seem to be quite the same.
Regards
from iota.go.
Hey Star
Badger store should keep a track of all addresses Hashes and there should be a method in account to retrieve them instead of using store.GetDepositAddresses(account.ID())
The account storage will ever only hold the addresses which are currently active for receiving deposits and not all addresses the account ever generated to save space.
However the checksum seem different from the one generated with account.AllocateDepositAddress(conds) that is using acc.setts.AddrGen(acc.lastKeyIndex, acc.setts.SecurityLevel, true).
Is the checksum of the address different or the entire address? Note that AllocateDepositAddress()
's checksum is the checksum over all the values of the CDA and not just the address, that why it is different.
Can you please explain exactly your use case and what you're trying to achieve?
from iota.go.
Hello,
Is the checksum of the address different or the entire address? Note that AllocateDepositAddress()'s checksum is the checksum over all the values of the CDA and not just the address, that why it is different.
Only the checksum part: you have answered my question.
Can you please explain exactly your use case and what you're trying to achieve?
I'm basically trying to send data from external temp sensors to the tangle (0 value transaction with MAM). I would like to get the results individually and per month (I would generate month * devices number addresses).
My understanding is that I need first to retrieve the transactions and then decrypt the SignatureMessageFragment with MAM. And for that I need the destination address as we can't get the source one.
Thanks in advance,
BTW the discord link is not working anymore for me.
from iota.go.
The account module is not MAM agnostic and has no concept on how to listen on addresses which were generated via MAM. Unfortunately this doesn't work. You'll have to write a separate program which simply uses the api.API
.
from iota.go.
Related Issues (20)
- Bug in new foundry validation HOT 6
- Incorrect validation in case of foundry state transition HOT 1
- Update the "About" link to wiki.iota.org HOT 1
- Update Native Tokens Count to uint8
- Wrong json schema for foundry parsing HOT 1
- `SerializedSize` wanted (GC optimized) HOT 1
- NetworkId in jsonTransactionEssence is wrong HOT 1
- Tag is optional in the tagged data payload HOT 1
- Update `InfoResStatus` to match TIP-25 HOT 1
- Update milestones core api routes HOT 1
- Let ID types implement more interfaces
- Add MustID() for Milestone
- Let Signatures implement sort.Interface
- Update builder package
- Remove `Parents` from block builder (rename ParentsBlockIDs to Parents)
- Make transaction builder Stardust reference blocks aware
- Remove milestone index from expiration/timelock UC
- Update API routes
- Fix Max Native Token Count check
- Add Scheduler parameters to Protocol Parameters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iota.go.